After updating to 0.6.0, Error: Cannot find module 'react-dev-utils/webpackHotDevClient'
See original GitHub issueIt seems create-react-app is updating very frequently right now, but there’s no guidance in how to keep an app you created with create-react-app up to date. It seems one way may be to update react-scripts via something like:
npm install --save-dev react-scripts@latest
But without any official documentation, it’s not clear if this is entirely sufficient. I just tried doing that from 0.5.1 to 0.6.0 and I got an error:
pbeshai: ~/Workspace/my-project $ npm start
> my-project@0.1.0 start /Users/pbeshai/Workspace/my-project
> react-scripts start
module.js:442
throw err;
^
Error: Cannot find module 'react-dev-utils/webpackHotDevClient'
at Function.Module._resolveFilename (module.js:440:15)
at Function.resolve (internal/module.js:27:19)
at Object.<anonymous> (/Users/pbeshai/Workspace/my-project/node_modules/react-scripts/config/webpack.config.dev.js:56:13)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/pbeshai/Workspace/my-project/node_modules/react-scripts/scripts/start.js:31:14)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
This error is resolved by running:
npm install --save-dev react-dev-utils
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:37 (20 by maintainers)
Top Results From Across the Web
How do I resolve "Cannot find module" error using Node.js?
Probably a good first troubleshooting step whenever a weird dependency issue pops up that npm install / npm update won't solve. This solved...
Read more >Error: cannot find module [Node npm Error Solved]
When you get the “cannot find module” error, or “module not found”, it means you've not installed the package you're trying to use....
Read more >Cannot find module 'which', extension doesn't load - GitLab
OS: Ubuntu 16.04 (x64); VSCode: 1.23 (x64); Extension: 0.6.0. After installing the extension no commands from the palette seem to work.
Read more >Error: Cannot find module 'ethereumjs-wallet'
I found that putting the --save at the end of the command worked for me. having it in the middle did not work....
Read more >[Solution] Error: Cannot Find Module "nodemailer" - Courier
What's Causing This Error? This error occurs when you have not installed the nodemailer library in your Node.js application.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Isn’t it the very first section in the User Guide? It’s linked from main README, too.
https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#updating-to-new-releases
Yes, of course. If you have problems please file a new issue with instructions to reproduce.
Note that if you’re using npm 5 you’re probably hitting one of its many bugs. Please try downgrading to npm 4 in the meantime.
npm install -g npm@4