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.

Unable to start new app

See original GitHub issue

Note from Maintainers

Newly created applications experienced a brief disruption between 8:15 PM - 9:15 PM (EST). The issue is now resolved.

Please delete the node_modules directory and then run npm install. If using yarn, you only need to run yarn upgrade.


Can you reproduce the problem with latest npm?

Yes

Description

I created a new app with create-react-app and I’m not able to run it. I can create a production build just fine and run that, but the development build doesn’t work.

Actual behavior

Here is the error I’m receiving in the terminal / browser:

Failed to compile.

Error in ./src/index.js
Module build failed: TypeError: /home/connor/git/Wakonda/src/index.js: Cannot read property 'scope' of undefined
 @ multi main

And here’s what I see when I open the console:

Uncaught Error: Cannot find module "/home/connor/git/cra-bug/src/index.js"
    at webpackMissingModule (bootstrap 2a26695…:578)
    at Object.<anonymous> (bootstrap 2a26695…:578)
    at __webpack_require__ (bootstrap 2a26695…:555)
    at bootstrap 2a26695…:578
    at bootstrap 2a26695…:578

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected): └── react-scripts@0.9.0
  2. node -v: v7.5.0
  3. npm -v: 4.1.2

If it makes any difference, I was using Yarn, but I also tested installing dependencies via npm and got the same issue.

Edit: I also tried this in Windows 10, and I receive the same error.

Then, specify:

  1. Operating system: Elementary OS (Linux)
  2. Browser and version: Chrome 56

Reproducible Demo

https://github.com/Conrad2134/cra-bug

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ajeremiascommented, Feb 14, 2017

I had the same error too. Just update babel in your project using this command:

npm install --save-dev babel-core

References:

ModuleBuildError: Module build failed: TypeError: Cannot read property ‘scope’ of undefined Fix bug - undefined reference for export declaration

3reactions
existentialismcommented, Feb 14, 2017

We inadvertently released a backwards incompatible change in babel-traverse.

We just reverted it and released a fix (6.23.1) that should fix this issue. Please reinstall deps. Sorry for the inconvenience!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix an installed Android app that isn't working - Google Support
Step 1: Restart & update · Open the Google Play Store app Google Play . · At the top right, tap the profile...
Read more >
App Won't Open on Android? 10 Ways To Fix - Online Tech Tips
Restart Your Phone · Is the App for a Different Version of Android? · Check for Android Updates · Check for App Updates...
Read more >
Top 8 Ways to Fix Apps Won't Open on Android - Guiding Tech
1. Force Stop Apps · 2. Clear the App Cache and Data · 3. Reinstall WebView Updates · 4. Update All Apps ·...
Read more >
Solved: Unable to create new app - Power Platform Community
In IE, click the gear icon on the top right and go to Internet Options · Under the Privacy tab, click "Advanced": Make...
Read more >
If an app on your iPhone or iPad stops responding, closes ...
If an app on your iPhone or iPad stops responding, closes unexpectedly, or won't open · Close and reopen the app. Force the...
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