question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module not found: Can't resolve '../components/Overlay' on starting server

See original GitHub issue

Is 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

  1. node -v: v8.2.1
  2. npm -v: 5.3.0
  3. yarn --version (if you use Yarn): 0.27.5
  4. npm ls react-scripts (if you haven’t ejected): 1.0.12

Then, specify:

  1. Operating system: Mac OS X 10.12.6
  2. Browser and version (if relevant):

Steps to Reproduce

  1. 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:closed
  • Created 6 years ago
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
gaearoncommented, Sep 1, 2017

The issue is because we replaced overlay.js with Overlay.js, and FS gets confused. Let’s just completely rename this file to something else. e.g. ErrorOverlay.js.

3reactions
gaearoncommented, Sep 1, 2017

Can you run

rm -rf node_modules
npm i

and try again?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found