#react+redux doubt
18 messages · Page 1 of 1 (latest)
You only showed the CSS file. That does not involve Redux in any way. Check the package.json file to see if Redux is listed as a dependency. If not, you can still do npm install react-redux. That can also be done on a regular React project without using a template. It just won't give you any starter code that uses Redux.
Happy new year!
I am Web developer !
I have six years of great experience of React.
I can help you. If you are interested me, Send me DM!
yes, i got the redux thanks to you but one more question, how do i get the starter code that uses redux
You can copy and paste the example code from the Redux site or use the degit command to clone the template: https://react-redux.js.org/introduction/getting-started
i get this error
and it isnt the 1st time
whenever i use create-react-app this error pops up
when creating a react proj, i had to use npm init react-app reactjs
why is it that my system doesnt support create-react-app instead i have to use npm init for everything
Did you ever install it?
npm install -g create-react-app
It has to be done with the -g to make it global. Also, the specific code you used was create-next-app, which is related, but it's not the same thing. That too has to be installed globally.
oh god, didnt know this, thanks, i installed it now
but how do i start the next app i created using redux, when using npm start, it gives an error
Try:
npm run dev
Also, you must be in the correct directory. Using create-next-app creates a directory for the new project. If you don't CD into the new directory, you will not be in the correct place.
yaa yss, i am in the correct directory
yea man, its working now but why did it use npm run dev to start instead of just npm start
thanks for all the help btw, it means alot to me
i subbed ur twitch, if you need help with editing any content for your channel or socials if u decide to upload in future, do ping me, i will do it for free for you
chooking
My Twitch? I have a Twitch account but I don't stream.