Delete `package-lock.json` and `yarn.lock`.
Delete `package-lock.json` and `yarn.lock`.
Check if node_modules/react exists.
If it doesn't, check if react is in your package.json. If you don't have it in package.json, add it.
Run npm install (or yarn if you use it).
Check if node_modules/react exists.
If it doesn't, something's messed up with npm or Yarn on your system. Try to update either. If that doesn't help, file a bug with them.
If you have node_modules/react but CRA app can't resolve it, please file a new issue with us.
Originally posted by @gaearon in https://github.com/facebook/create-react-app/issues/2534#issuecomment-340727156
I have react in package.json as well as node_modules/react, but it the bug is still not resolved. Hence raising the ticket. Kindly guide.
Great afternoon, has your issue been resolved yet?