Production Build Randomly Fails
See original GitHub issueIf you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.
Can you reproduce the problem with latest npm?
Yes.
Description
The html file build randomly fails, leading to a missing HTML file. This happens silently and intermittently.
Repro instructions:
- Delete the
build/
contents between runs - Run build
- Make sure
build/index.html
got generated – ifbuild/index.html
is missing, you’ve reproduced the bug - Repeat
Expected behavior
HTML file should always build.
Actual behavior
Building from scratch, build/index.html
intermittently fails to get generated.
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected): N/A - I have ejectednode -v
: v6.9.1npm -v
: 4.0.2create-react-app --version
: 0.6.0
Then, specify:
- Operating system: Ubuntu 16.04.1 LTS
- Browser and version: N/A
Reproducible Demo
Run create-react-app
with defaults and you’ll have it, but you may have to run build a lot to repro the problem.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:22 (7 by maintainers)
Top Results From Across the Web
node.js - Material-UI Rendering Bugs in production / build
The #1 reason this likely happens is due to class name conflicts once your code is in a production bundle. Accoring to Material...
Read more >Error in nextjs production build (Just in production)
Hi! We are running our app with builder within a vercel deployment, directly forking nextjs-builder-io-landing-page builderio github ...
Read more >Errors occur generating production build with KUIB 3.0x - Progress ...
Errors occur when trying to generate a production build with KUIB 3.0.x. Unable to generate release build with KUIB 3.0/3.0.5. getSession() fails to...
Read more >Common Build Problems - Travis CI Docs
Restart a build that used to be green, the last known working one, for instance. If that build suddenly fails too, there's a...
Read more >Top 10 Reasons Your Production Build Could Fail - MacroFab
The first most common production build problem is that manufacturing documentation can be either poorly written or missing entirely. Assembly instructions need ...
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
We’ll need to figure out which part of the build is so memory hungry.
I’ve seen silent failures in
npm run build
due to out-of-memory conditions on machines with no swap space. Next time this happens, check your system logs (see my comment in #1133)