I am a beginner in React programming and I was following this tutorial in Youtube: https://youtu.be/hQAHSlTtcmY and everything went well until it w...
For further actions, you may consider blocking this person and/or reporting abuse
That video is old and the module is now exposed differently.
npmjs.com/package/uuid#create-vers...
I dont know what happen but now when I run Npm start I just get this error in the Terminal:
'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! reactnative@0.1.0 start:
react-scripts startnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reactnative@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Not sure, usually what I would do is
rm -rf node_modulesthennpm iand thennpm startOMG thanks, that fixed it! Now that I can actually run the build I can begin fixing this few errors :)
Can u help with these errors? I don't really understand what the issue even is here...
TypeError: localStorage.SetItem is not a function
C:/Users/sami/Git/Todo/src/App.js:16
13 | }, [])
14 |
15 | useEffect(() => {
localhost:3000/static/js/main.chun...
27 | if (storedTodos) setTodos(storedTodos);
28 | }, []);
29 | Object(react_WEBPACK_IMPORTED_MODULE_0_["useEffect"])(() => {
You should put code inside
Otherwise it's hard to read.
My guess is that
localStorageis not defined.Try with
window.localStorageas it exist only in the browser on the globalwindowobjectWhat's your file look like? Did you npm install uuid?
Yes I did that