Failed to build this code within create-react-app
See original GitHub issue- What version of RJEA are you using (react-json-editor-ajrm version)? ^2.5.3
- What operating system and processor architecture are you using? Mac
- What did you do? Integrated it into
- 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:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top 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 >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
@AndrewRedican I created a PR for that. https://github.com/AndrewRedican/react-json-editor-ajrm/pull/52
Makes sense, that sounds like a good idea.