Skip to content

Create React App 2 Build Error #51

@SCasarotto

Description

@SCasarotto

Hey @selvagsz,

I updated one of my projects to CRA2 and was attempting to build. Received the following error:

Failed to minify the bundle. Error: static/js/1.fa0b5eff.chunk.js from Terser

From there I started into my project to try to narrow down what was causing this error. After isolating this more, it looks like it is this package. To prove this to myself I set up a blank app and received the same error.

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

I am also going to post about this in CRA but figured if it is something that has to be fixed here I would give you aheads up. (facebook/create-react-app#5250)

Will keep you posted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions