-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run build fails to generate bundle #1026
Comments
Thanks for the report. Unfortunately I'll have to close it because there is not enough information here to diagnose the error, and your best bet is to try to debug the process yourself and figure out what is happening. I'd be happy to reopen if you have any suggestions about what might be happening, or if there are more people experiencing the issue. Since nobody else reports anything like this, it seems like it's some isolated issue with your machine, and even though I'm really sorry this is happening, there is nothing I could do to help. |
Hi @AJShippify, not sure you're still having this problem, but it seems I'm running into the same issue when building my app on my Linux box, which is a cloud instance running CentOS 6.5. Anyway, I found that my builds would run briefly, then just stop for no reason. I had a look at the Do you (or anyone else reading this) know of a way to get WebPack to throw some sort of error when it fails to load something or to otherwise make it more obvious why loading failed? Hope that all helps, or at least provides some clue as to why our builds are failing on Linux. Thanks! |
What was happening, in my situation, is that since I was working in a
low-memory environment the build script silently failed due to running out
of available memory.
2016-11-29 23:48 GMT-05:00 Andy Engle <[email protected]>:
… Hi @AJShippify <https://github.com/AJShippify>, not sure you're still
having this problem, but it seems I'm running into the same issue when
building my app on my Linux box, which is a cloud instance running CentOS
6.5. Anyway, I found that my builds would run briefly, then just stop for
no reason. I had a look at the build.js script in
node_modules/react-scripts/ and was able to track down the config
details, and the build.js file. From there I added the
CaseSensitivePathsPlugin to watch WebPack load up all the modules, and I
found that loading stopped when it got to node_modules/core-js/library/
modules. At that point, everything stopped but no error was provided as
to why loading failed.
Do you (or anyone else reading this) know of a way to get WebPack to throw
some sort of error when it fails to load something or to otherwise make it
more obvious why loading failed?
Hope that all helps, or at least provides some clue as to why our builds
are failing on Linux. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1026 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANbg5O1V1ihqyGB-Y_r1rAJ6XHFZ-FELks5rDQAJgaJpZM4KtrOH>
.
|
Thanks for sharing the details! |
Agreed. Thanks for the clues, @AJShippify. I tried my build on another cloud instance with a lot more memory and things worked swimmingly. In this case, it was an EC2 instance sized at m4.large (16GB memory) which did the trick. |
No problem, glad to help 👍
2016-12-01 10:07 GMT-05:00 Andy Engle <[email protected]>:
… Agreed. Thanks for the clues, @AJShippify <https://github.com/AJShippify>.
I tried my build on another cloud instance with a lot more memory and
things worked swimmingly. In this case, it was an EC2 instance sized at
m4.large (16GB memory) which did the trick.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1026 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANbg5HFivYkNXwUUL6fMTHOe71WL17Psks5rDuLHgaJpZM4KtrOH>
.
|
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?
Many errors, especially related to "missing modules", are due to npm bugs.
If you're using Windows, follow these instructions to update npm.
If you're using OS X or Linux, run this to update npm:
Then try to reproduce the issue again.
Can you still reproduce it?
Description
Build script is not loading forever in an Ubuntu 14.04 server
Expected behavior
Generate build folder in a limited time
Actual behavior
Script runs for more than 40 minutes then times out only leaving a build folder with favicon.ico
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected): 0.7.0node -v
: v6.8.1npm -v
: 3.10.9Then, specify:
Reproducible Demo
Base create-react-app
The text was updated successfully, but these errors were encountered: