Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-react-app/webpack failed to minify as module needs to be submitted in ES5 on npm #1

Open
crhallen opened this issue Dec 8, 2017 · 3 comments

Comments

@crhallen
Copy link

crhallen commented Dec 8, 2017

Trying to run a production build on create-react-app and get the following error:

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/react-currency-formatter/dist/react-currency-formatter.umd.js:2966

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.

create-react-app requires that packages be compiled to ES5 before being submitted to npm

The linked documentation at http://bit.ly/2tRViJ9 says to

Open an issue on the dependency's issue tracker and ask that the package be published pre-compiled.

@crhallen crhallen changed the title webpack / create-react-app failed to minify the code... create-react-app/webpack failed to minify as module needs to be submitted in ES5 on npm Dec 8, 2017
@tcoxNB
Copy link

tcoxNB commented Dec 20, 2017

I am having the same issue. I was trying to run a package with this component imported, and it doesn't minify down so I get a syntax error in Edge.

@xDae
Copy link
Owner

xDae commented Dec 29, 2017

Thanks @crhallen & @tcoxNB, Im going to check it and fix as soon I can

@xDae
Copy link
Owner

xDae commented Dec 31, 2017

i just release a new release, can you test and check its working fine ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants