Failed to minify the code from this file: ./node_modules/material-ui/es/styles/withStyles.js:36
See original GitHub issueI have an error while creating an optimized production build of react application.
Error message is:
Failed to compile. Failed to minify the code from this file: ./node_modules/material-ui/es/styles/withStyles.js:36 Read more here: http://bit.ly/2tRViJ9
Error log: 2018-04-17T08_28_43_938Z-debug.log
- [ x] I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
Should compile with success for react production.
Current Behavior
Creating an optimized production build… Failed to compile.
Your Environment
Tech | Version |
---|---|
Material-UI | ^1.0.0-beta.42 |
React | 16.3.1 |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Failed to minify the code from this file - Stack Overflow
npm run build fails to minify Before react-scripts@2.0.0 , this problem was caused by third party node_modules using modern JavaScript features ...
Read more >Failed to minify the code from this file #3734 - GitHub
Failed to minify the code from this file I keep running to this error with many packages that i'm using in my project,...
Read more >Failed to Minify - GSAP - GreenSock
P.S: I've copied the files in the root folder and also into the /umd/ folder and tried with both... even if im not...
Read more >Resolving "Failed to minify the bundle" Errors - CircleCI Support
The following error message is usually related to running out of memory during a job: Failed to minify the bundle.
Read more >JavaScript Minify Tool - DigitalOcean
JavaScript Minify Tool. A web tool for the DigitalOcean Community to quickly minify JavaScript files. Compress Code. Enable live compression as you type ......
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
I had the same issue, turned out I imported a component with the following statement: import Component from ‘material-ui/es/Component/Component’. The es/ part in the import path was the problem.
@tugrulyilmazer The relevant parts of the documentation: