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

Build Error at react-highlight.js:21,0 #2

Closed
zlargon opened this issue Jul 8, 2017 · 1 comment
Closed

Build Error at react-highlight.js:21,0 #2

zlargon opened this issue Jul 8, 2017 · 1 comment

Comments

@zlargon
Copy link
Owner

zlargon commented Jul 8, 2017

Build Error at react-highlight.js:21,0

yarn build v0.24.6

$ react-scripts build
Creating an optimized production build...
Failed to compile.

static/js/main.5bb97112.js from UglifyJs
Unexpected token: name (HighLight) [./~/react-syntax-highlight/react-highlight.js:21,0][static/js/main.5bb97112.js:38479,8]

error Command failed with exit code 1.
@zlargon zlargon reopened this Jul 10, 2017
zlargon added a commit that referenced this issue Jul 10, 2017
- react-highlight.js
- react-highlight.browser.js
@zlargon
Copy link
Owner Author

zlargon commented Jul 10, 2017

The root cause is that UglifyJs could not work with ES6.

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

1 participant