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.

Build fails when included in create-react-app

See original GitHub issue
> npm run build

> <redacted>@0.1.0 build X:\github\<redacted>
> react-scripts build

Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

        ./node_modules/superstruct/lib/index.es.js:7

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

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ethereum-pos@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ethereum-pos@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\<redacted>

Looking at the link printed above, it looks like create-react-app expects the node modules to be compiled ES5. Is there a way around this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dan1elhughescommented, Feb 21, 2018

I’ve done some searching around and I’m struggling to figure out quite what’s causing this. I’ve got a workaround for now, but it’s not pretty…

0reactions
dan1elhughescommented, May 23, 2019

I’m no longer using this library so I’m going to close this issue. If this bug still exists, I’m sure it’ll reappear in another issue as needed 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix build failures with `create-react-app` in production
If your build is using create-react-app and has been failing since approximately the 18th of June 2020, this post will help you fix...
Read more >
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 >
My create-react-app is failing to compile due to ESLint error
1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3.
Read more >
Troubleshooting - Create React App
It is reported that npm run build can fail on machines with limited memory and no swap space, which is common in cloud...
Read more >
create-react-app not working ⚠️ error solved - YouTube
In this video, we will solve the error in reactjs that We no longer support global installation of Create React App. ✔️ create...
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