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

See original GitHub issue

I am using pica to resize images in the browser and it produces very good result. however I can only run it in development. Ideas?

yarn run v1.3.2
$ react-scripts build
Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file: 

 	./node_modules/pica/lib/mathlib.js:19 

Read more here: http://bit.ly/2tRViJ9

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
afradcommented, Jan 6, 2018

you can import the mignified file directly: import pica from ‘pica/dist/pica.min’ that would solve the problem

2reactions
leoliucommented, Nov 12, 2017

@ykshev,

No, I have no solution yet. Since it causes the project to fail to build, I have to back out the lib for now.

Leo

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 >
Code Failed To Minify - Google Groups
Hey all, Built an App with TensorflowJS integrated with Create-React-App. Worked fine on my laptop but once I tried to deploy it onto...
Read more >
Npm - Matt Button
js Creating an optimized production build... Failed to compile. Failed to minify the code from this file: ./node_modules/@ckeditor/ckeditor5-build-classic/build ...
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