Bitnoise / react-scheduler

MIT License
348 stars 93 forks source link

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

Open craftByElla opened 5 months ago

craftByElla commented 5 months ago

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 commented 5 months ago

I Even tried #69 but same error still

kernex commented 5 months ago

Same error here.

ZiangTian commented 5 months ago

same

amjadmak commented 5 months ago

Same Here. using react 18

amjadmak commented 5 months ago

@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 commented 4 months ago

@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 commented 3 months ago

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 commented 3 months ago

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

nikolaspoczekaj commented 3 months ago

Hello, same here.

mGasiorek998 commented 2 months ago

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

whittssg commented 5 days ago

@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