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.

Minify Bundle Error in CRA2

See original GitHub issue

Is this a bug report?

Yes. When trying to build I receive the following error:

Failed to compile.

Failed to minify the bundle. Error: static/js/1.7292b262.chunk.js from Terser

After looking into this more it seems to be due to this package I am using (https://github.com/selvagsz/react-power-select). At this time I don’t know if this is something that should be resolved in CRA or in that package. Have posted there as well but I want to share here in the case this is caused by something in CRA.(https://github.com/selvagsz/react-power-select/issues/51)

Did you try recovering your dependencies?

Yes

Yarn Version: 1.10.1

Which terms did you search for in User Guide?

Terminal Error links to: “npm run build fails to minify”

Environment

System: OS: macOS 10.14 CPU: x64 Intel® Core™ i9-8950HK CPU @ 2.90GHz Binaries: Node: 10.10.0 - /usr/local/bin/node Yarn: 1.10.1 - /usr/local/bin/yarn npm: 6.4.1 - /usr/local/bin/npm Browsers: Chrome: 69.0.3497.100 Safari: 12.0 npmPackages: @tippy.js/react: ^1.0.0 => 1.0.0 react: ^16.5.2 => 16.5.2 react-dom: ^16.5.2 => 16.5.2 react-scripts: 2.0.3 => 2.0.3 npmGlobalPackages: create-react-app: Not Found

Steps to Reproduce

(Write your steps here:)

Steps to reproduce:

  1. npx create-react-app my-app
  2. cd my-app
  3. yarn add react-power-select
  4. in /src/App.js add import { PowerSelect } from 'react-power-select'
  5. yarn build

Expected Behavior

Build Success!

Actual Behavior

Failed to compile.

Reproducible Demo

See Steps Above. Blank project with that library in it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
SCasarottocommented, Oct 3, 2018

Appears to work great! Really appreciate the help!

1reaction
Timercommented, Oct 3, 2018

This fix is out in 2.0.4! Please upgrade and test.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
How can I create one bundle file from react-create-app
Yes, it is possible to do this with CRA (create-react-app) and webpack. I'll detail 3 options below that I've gotten to work.
Read more >
Releases - styled-components
Major performance and bundle size improvements over v4, see the announcement ... Trying to interpolate a non-styled component into CSS is now a...
Read more >
Instruction Manual for Braille Transcribing
Depending upon the number and type of errors made, the student will be ... You can tie the bundle with the withe that's...
Read more >
@storybook/react-native-server | Yarn - Package Manager
For example: // storybook/addons.js require('@storybook/addon-knobs/register'); require('@storybook/addon-actions/register');. If you get the error Can't ...
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