Failed to minify the code
See original GitHub issueWhat MDC-Web Version are you using?
0.19.0
What OS are you using?
macOS Sierra
What are the steps to reproduce the bug?
Please write the steps which need to be taken in order to reproduce the bug. These steps should be as detailed as possible, e.g.
- Using react-scripts build
- Do
yarn build
What is the expected behavior?
No errors.
What is the actual behavior?
I get the following error:
$ yarn build
yarn build v0.27.5
$ react-scripts build
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/@material/base/foundation.js:20
Read more here: http://bit.ly/2tRViJ9
error Command failed with exit code 1.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:16 (5 by maintainers)
Top Results From Across the Web
Failed to minify the code from this file - Stack Overflow
Now when I want to build my project I get an error: Failed to compile. Failed to minify the code from this file:...
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 >Resolving "Failed to minify the bundle" Errors - CircleCI Support
TerserWebpackPlugin. The following error message is usually related to running out of memory during a job: Failed to minify the bundle.
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 >Code Failed To Minify - Google Groups
remote: Failed to minify the code from this file: remote: remote: ./node_modules/@tensorflow/tfjs-converter/dist-es6/data/compiled_api.js:324. remote:.
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
@lynnjepsen any news about this issue? I recently got the same error as @zomars. Regarding to http://bit.ly/2tRViJ9 this issue could be resolved by deploying a precompiled file?
I had this issue and fixed it Note: My setup is with create react app (and webpack 4)
I ultimately used @endersaka method, except you need to escape a forward slash
So you need to change
test: /\.(js|jsx|mjs)$/, include: paths.appSrc, loader: require.resolve('babel-loader'),
in node_modules/react-scripts/config/webpack.config.prod.js totest: /\.(js|jsx|mjs)$/, include: [ paths.appSrc, paths.appNodeModules + "\\@material" ], loader: require.resolve('babel-loader'),
hope it works for you as well