create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Delete `package-lock.json` and `yarn.lock`.

Open DeekshaIntern opened this issue 2 years ago • 2 comments

          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

DeekshaIntern avatar Aug 09 '23 05:08 DeekshaIntern

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.

DeekshaIntern avatar Aug 09 '23 05:08 DeekshaIntern

Great afternoon, has your issue been resolved yet?

trottiemcqueen avatar Nov 28 '23 04:11 trottiemcqueen