Unable to start new app
See original GitHub issueNote 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 runnpm install
. If using yarn, you only need to runyarn 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:
npm ls react-scripts
(if you haven’t ejected):└── react-scripts@0.9.0
node -v
:v7.5.0
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:
- Operating system: Elementary OS (Linux)
- Browser and version: Chrome 56
Reproducible Demo
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (3 by maintainers)
Top GitHub Comments
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
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!