I'm working my way through the Pt 1 video and at 39:00, I'm getting the following error when viewing localhost:3000 related to src > index.js >
ReactDOM.render(, document.getElementById('root'),);
/*
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
*/
I am using react-dom branch 17.0.1 and reactVersion 17.0.0.
----And---
My client Terminal keeps asking if something is already running on port 3000:
/*
Probably client/node_modules/react-scripts/scripts/start.js (pid 28626)
*/
I do seem to have a node_modules folder inside the client, the server, and the root. Should I remove the node_modules? in the root area?
I progressed onto calls to the API around 48:00+ and had to install it a few modules that got missed: Axios, react, and react-redux, and @materials-ui/core. I'm getting this error even though I can see the file in my directory:
ENOENT: no such file or directory, open '.../Desktop/memories-project/node_modules/@material-ui/core/esm/index.js'
Not sure if the previous errors are resolved; they do tend to show up when all else is working.
Any help is greatly appreciated.