Module not found: Can't resolve '../components/Overlay' on starting server
See original GitHub issueIs this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
I’m using yarn 0.27.5
Which terms did you search for in User Guide?
N/A
Environment
node -v
: v8.2.1npm -v
: 5.3.0yarn --version
(if you use Yarn): 0.27.5npm ls react-scripts
(if you haven’t ejected): 1.0.12
Then, specify:
- Operating system: Mac OS X 10.12.6
- Browser and version (if relevant):
Steps to Reproduce
- run
dotenv npm run start
Expected Behavior
Server starts running.
Actual Behavior
Receive the following error:
Failed to compile.
./node_modules/react-error-overlay/lib/containers/CompileErrorContainer.js
Module not found: Can't resolve '../components/Overlay' in '/Users/jason/nob/messages-frontend-prototype/node_modules/react-error-overlay/lib/containers'
Reproducible Demo
None at the moment.
Note: Downgrading to react-scripts 1.0.11 works great.
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (8 by maintainers)
Top Results From Across the Web
Module not found: Can't resolve 'react-native' - Stack Overflow
This library will convert our react-native components into web elements ... I faced this issue since many days "Module not found" the simple ......
Read more >Troubleshooting | React Navigation
Troubleshooting. This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation.
Read more >react-hot-loader - npm
Start using react-hot-loader in your project by running `npm i ... Module not found: Error: Cannot resolve module 'react-hot-loader' or the ...
Read more >Can't resolve 'aws-sdk' when import nodejieba to react-Reactjs
You used npx create-react-app and it must be using Webpack 5 now, which does not include polyfills for node.js anymore. An alternate solution...
Read more >Integration with Existing Apps - React Native
Add a ReactRootView to your Android app. This view will serve as the container for your React Native component. Start the React Native...
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 FreeTop 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
Top GitHub Comments
The issue is because we replaced
overlay.js
withOverlay.js
, and FS gets confused. Let’s just completely rename this file to something else. e.g.ErrorOverlay.js
.Can you run
and try again?