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.

Failed to build this code within create-react-app

See original GitHub issue
  1. What version of RJEA are you using (react-json-editor-ajrm version)? ^2.5.3
  2. What operating system and processor architecture are you using? Mac
  3. What did you do? Integrated it into
  4. Problem Create-React-App is an easy way to get started with react apps of any kind. I just created a new side project where I used react-json-editor-ajrm. Since I wanted to deliver the frontend through a dockerfile I built the project by using react-scripts. However this creates the following error:
$ react-scripts build
Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

 	./node_modules/react-json-editor-ajrm/es/index.js:12

Read more here: http://bit.ly/2tRViJ9

error Command failed with exit code 1.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
PetrykowskiMcommented, Aug 30, 2018
1reaction
PatrickSachscommented, Aug 29, 2018

Makes sense, that sounds like a good idea.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-scripts fails to build project with Node 17 #11562 - GitHub
Describe the bug we have a CRA app, it used to build with Node 14.x very fine, today I upgrade nodejs to 17.0.0...
Read more >
create-react-app "Failed to compile" on start up - Stack Overflow
It is a new bug in BrowserList. There are new reports on this both in create-react-app: ... This will build and run the...
Read more >
How to fix build failures with `create-react-app` in production
The build script bootstrapped by create-react-app performs some validation of your code. When most of this validation fails, ...
Read more >
Deployment | Create React App
You would need to add a 404.html file with the redirection code to the build folder before deploying your project, and you'll need...
Read more >
Error Boundaries - React
These errors were always caused by an earlier error in the application code, but React did not provide a way to handle them...
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