Minify Bundle Error in CRA2
Created by: SCasarotto
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(R) Core(TM) 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:
npx create-react-app my-app
cd my-app
yarn add react-power-select
- in
/src/App.js
addimport { PowerSelect } from 'react-power-select'
yarn build
Expected Behavior
Build Success!
Actual Behavior
Failed to compile.
Reproducible Demo
See Steps Above. Blank project with that library in it.