Skip to content
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

Compilation failed:The code generator has deoptimised the styling of "/mastodon/node_modules/emoji-mart/dist-es/data/data.js" as it exceeds the max of "500KB". #5536

Closed
XuHandsome opened this issue Oct 26, 2017 · 2 comments

Comments

@XuHandsome
Copy link

docker-compose run --rm web rake assets:precompile
Starting mastodon_redis_1 ... done
Starting mastodon_db_1 ... done
Creating mastodon user (UID : 991 and GID : 991)...
Updating permissions...
Executing process...
Webpacker is installed 🎉 🍰
Using /mastodon/config/webpacker.yml file for setting up webpack paths
Compiling…
Compilation failed:

[BABEL] Note: The code generator has deoptimised the styling of "/mastodon/node_modules/emoji-mart/dist-es/data/data.js" as it exceeds the max of "500KB".
(node:174) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.

@corbindavenport
Copy link

This is due to the machine not having enough RAM during the build process. Try adding a temporary 1GB swap file with these instructions: #5836 (comment)

@BobSadan
Copy link

I had to seen this issue,and as this error:The code generator has deoptimised the styling of "xxx/xxx/templates.js as it exceeds the max of 500KB " when a templates.js document was packaged for webpack.So I found some method to resolve it. I know a truthful thing Because we could use the different program frames.
You can find gulpfile.js and search the word "babelify", exmaple :

bundler.transform("babelify", { "compact": false,presets: ["es2015"] });

you can see above setting ,I only added "compact":false, Hope to help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants