CRA 2 'Failed to compile' when running 'build'
See original GitHub issueIs this a bug report?
Yes
Did you try recovering your dependencies?
Yes. Additionally, I made a clean installation on another machine.
Which terms did you search for in User Guide?
‘Updating to New Releases’
Environment
Environment: OS: macOS 10.14 Node: 8.11.3 Yarn: Not Found npm: 5.6.0 Watchman: Not Found Xcode: Xcode 10.0 Build version 10A255 Android Studio: Not Found
Packages: (wanted => installed) react: ^16.5.2 => 16.5.2 react-dom: ^16.5.2 => 16.5.2 react-scripts: ^2.0.4 => 2.0.4
Steps to Reproduce
npm run build
Expected Behavior
successful build
Actual Behavior
Reproducible Demo
‘Component’ is a functional component.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Failed to Compile Error on npm run start - CRA
I have a project bootstrapped using Create React App ...
Read more >CRA: Failed to compile
Hey, All my react CRA apps are showing “Failed to compile.” since yesterday. Has there been any changes why this may occur?
Read more >CRA 5.0.0 breaks build : r/reactjs
Steps to reproduce · Open package.json and verify that react-scripts is version 5.0.0 · Open the App.test.tsx file and introduce any syntax error....
Read more >What Does Create-React-App Actually Do? | by Andrew Mc
Next inside create-react-app (CRA), your command runs through a series of checks. It finds information about your system, looks if you have any...
Read more >react-app-rewired
Start using react-app-rewired in your project by running `npm i ... 2) Create a config-overrides.js file in the root directory.
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
It should be fixed with v0.4.20, thank you @lukeapage!
@oliviertassinari Hi! Download bug example and run
npm i && npm run babel
TypeError: Cannot read property 'type' of undefined at memberExpressionRootIdentifier (D:\Example\node_modules\babel-plugin-transform-react-remove-prop-types\lib\index.js:105:39)
105 line in code
while (memberExpression.node.object.type === 'MemberExpression') {