Im on windows and ive instaled all neccesary software. But i still get 1 error while i try to run my localhost. It says:
Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
- You might have mismatching versions of React and the renderer (such as React DOM)
- You might be breaking the Rules of Hooks
- You might have more than one copy of React in the same app
See Rules of Hooks – React for tips about how to debug and fix this problem.
TypeError: Cannot read properties of null (reading ‘useEffect’)
I cannot seam to solve the problem, thank you in advance.
Maybe missing install the newest MS Redis C++ Software?
You can also check my Installation Video for Windows. See my profile for channel link or see here:
reinstalled it but did not work, the website error says:
Unexpected Server Error
TypeError: Cannot read properties of null (reading ‘useEffect’)
Can you paste screenshots of your terminal please where you run it?
Also run these to commands and provide the output:
node --version
npm --version
ok, but do for the installation steps as well please 
Versions look fine.
what do you mean? screenshots of installing?
yes, exactly. screenshot where I can see the commands you are running and the output of it, cause I think there is something wrong/missing
It looks like you are on the latest update of Windows 11. Might be related a known issue, requiring you to install the Latest Version of C++ Redistributable as mentioned by @leex279.
Also, just make sure to use pnpm install
and not npm
. If you accidently used npm
, delete the node_modules
directory and do that step again.
Got it to work thanks for the help!
1 Like