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

See original GitHub issue

What 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.

  1. Using react-scripts build
  2. 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
s-acommented, Jan 9, 2018

@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?

2reactions
BrandonCate95commented, Jul 23, 2018

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 to

test: /\.(js|jsx|mjs)$/, include: [ paths.appSrc, paths.appNodeModules + "\\@material" ], loader: require.resolve('babel-loader'),

hope it works for you as well

Read more comments on GitHub >

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

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