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

TypeError: Cannot read properties of null (reading 'useMemo') #115

Open
craftByElla opened this issue Apr 25, 2024 · 11 comments
Open

TypeError: Cannot read properties of null (reading 'useMemo') #115

craftByElla opened this issue Apr 25, 2024 · 11 comments
Labels
enhancement New feature or request

Comments

@craftByElla
Copy link

Hello,

I'm currently facing an issue with the @bitnoi.se/react-scheduler component in my Next.js project. After integrating the scheduler into my application, I consistently receive the following runtime error:

TypeError: Cannot read properties of null (reading 'useMemo')

Here is a brief overview of my setup:

Next.js version: 12.1.6
React version: 18.1.0
@bitnoi.se/react-scheduler version: 0.2.0

by the way I'm a beginner dev so sorry if i missed something.
Gantt-React.txt
Home.txt

@craftByElla
Copy link
Author

I Even tried #69 but same error still

@kernex
Copy link

kernex commented May 4, 2024

Same error here.

@ZiangTian
Copy link

same

@amjadmak
Copy link

amjadmak commented May 7, 2024

Same Here. using react 18

@amjadmak
Copy link

amjadmak commented May 7, 2024

@craftByElla
@ZiangTian
@kernex

I solved it by changing the version of react and react-dom in package.json as below
First: Delete node_modules and package-lock.json
Second: Go to package.json and change the version of react and react-dom as below

    "react": "18.2.0",
    "react-dom": "18.2.0",

run npm i

@WenhaoYou1
Copy link

@craftByElla @ZiangTian @kernex

I solved it by changing the version of react and react-dom in package.json as below First: Delete node_modules and package-lock.json Second: Go to package.json and change the version of react and react-dom as below

    "react": "18.2.0",
    "react-dom": "18.2.0",

run npm i

It works. Thx.

@inno-zunaid
Copy link

Hi my
"react": "^18.3.1",
"react-dom": "^18.3.1",

i don't want to degrade the react version is there any solution for this..

@domme1908
Copy link

Hi - Same here, even with react 18.2.0 and react-dom 18.2.0

@nikolaspoczekaj
Copy link

Hello, same here.

@mGasiorek998
Copy link
Collaborator

Hi, with the upcoming version we'll update react version to the newest one, so this issue should be fixed. Stay tuned!

@whittssg
Copy link

@mGasiorek998 I saw a few new versions since this but I still get the useMemo error on the new ones? Was it fixed or do we still need to downgrade ? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests