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 failed to minify v6 #127

Closed
Stupidism opened this issue Mar 14, 2018 · 3 comments
Closed

Create-react-app failed to minify v6 #127

Stupidism opened this issue Mar 14, 2018 · 3 comments

Comments

@Stupidism
Copy link


Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file: 
 	./node_modules/query-string/index.js:8 
Read more here: http://bit.ly/2tRViJ9
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `react-app-rewired build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2018-03-14T10_27_43_189Z-debug.log
@Stupidism
Copy link
Author

As the link CRA put in the error message recommended, I open a issue here.

@SamVerschueren
Copy link
Contributor

We aim for Node.js, not the browser. You can find a more detailed explanation here sindresorhus/ama#446.

If you use Webpack, check out babel-engine-plugin, which transpiles only the dependencies that needs to be transpiled.

Also, see the release notes of v6.

Repository owner locked and limited conversation to collaborators Mar 14, 2018
@sindresorhus
Copy link
Owner

Stay on version 5 if you need to use this with Create React App.

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

No branches or pull requests

3 participants