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.

CRA 2 'Failed to compile' when running 'build'

See original GitHub issue

Is 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

Error

Reproducible Demo

‘Component’ is a functional component. Code

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
oliviertassinaricommented, Nov 6, 2018

It should be fixed with v0.4.20, thank you @lukeapage!

1reaction
multumcommented, Oct 16, 2018

@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') {

Read more comments on GitHub >

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

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