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.

Failed to minify the code from this file: ./node_modules/material-ui/es/styles/withStyles.js:36

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

54reactions
Jaujoncommented, Jun 19, 2018

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.

Read more comments on GitHub >

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

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