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.

Production Build Randomly Fails

See original GitHub issue

If 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:

  1. Delete the build/ contents between runs
  2. Run build
  3. Make sure build/index.html got generated – if build/index.html is missing, you’ve reproduced the bug
  4. 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:

  1. npm ls react-scripts (if you haven’t ejected): N/A - I have ejected
  2. node -v: v6.9.1
  3. npm -v: 4.0.2
  4. create-react-app --version: 0.6.0

Then, specify:

  1. Operating system: Ubuntu 16.04.1 LTS
  2. 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:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
gaearoncommented, Dec 5, 2016

We’ll need to figure out which part of the build is so memory hungry.

2reactions
godmarcommented, Dec 3, 2016

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)

Read more comments on GitHub >

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

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