Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nexjs some issue: typeError: Cannot read properties of null (reading 'removeEventListener') #363

Open
cheelix opened this issue Nov 18, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@cheelix
Copy link

cheelix commented Nov 18, 2023

"use client"
import React, { useState } from "react";
import "react-modern-calendar-datepicker/lib/DatePicker.css";
import DatePicker from "react-modern-calendar-datepicker";

const App = () => {
const [selectedDay, setSelectedDay] = useState(null);
return (

);
};

export default App;

The code totally same copy
but ,when I selected a date,
error happened:
Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'removeEventListener')

@cheelix cheelix added the bug Something isn't working label Nov 18, 2023
@RezaGhx
Copy link

RezaGhx commented Nov 19, 2023

#204 (comment)

@ShivBhanKushWaha
Copy link

same issue i am facing and the main reason is that after returning the eventListner is not set

@RezaGhx
Copy link

RezaGhx commented Apr 26, 2024

check the comment above. you should use an alternative package similar to this one.

@ShivBhanKushWaha
Copy link

ShivBhanKushWaha commented Apr 27, 2024

Ys I will use another package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants