-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Build Error - Static Resource Size too Large #2475
Comments
The real problem is here:
I'll close this as a duplicate of #2433 to remove the confusing message about "static resource too large". |
Please ignore the "static resource" warning. It's irrelevant and we'll mute it soon. The real error is just below:
It means return obj && (0, _omit3.default)(_extends({}, obj, { [newKey]: obj[oldKey] }), oldKey); In particular, |
This crops up in the form of uglify errors during a production build, e.g. facebook#2236, facebook#2433, facebook#2475. The suggestion there is to transpile deps down to ES5 and/or remove `module`. However, `module` is there specifically to indicate ES module support, which uglify doesn't support, so ask webpack not to resolve it.
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?
Yes!
Description
What are you reporting?
Building create-react-app with snoowrap package results in a build error.
Expected behavior
Tell us what you think should happen.
The module should build and push to heroku to allow me to deploy my website.
Actual behavior
Tell us what actually happens.
I have two different set ups, one with the site, one with only create-react app and snoowrap.
Website Error:
create-react-app & snoowrap only:
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected): react-scripts@1.0.7node -v
: v7.10.0npm -v
: 5.0.2Then, specify:
Reproducible Demo
Please take the time to create a new app that reproduces the issue.
Alternatively, you could copy your app that experiences the problem and start removing things until you’re left with the minimal reproducible demo.
(Accidentally, you might get to the root of your problem during that process.)
Push to GitHub and paste the link here.
Website: https://github.com/cdvallejo/cdv-site
Basic Example: https://github.com/cdvallejo/build-error
By doing this, you're helping the Create React App contributors a big time!
Demonstrable issues gets fixed faster.
The text was updated successfully, but these errors were encountered: