UglifyJS throw 'Invalid assignment' error
See original GitHub issueHi,
Thanks for this awesome library!
I’m creating a component library using an nwb boilerplate (https://github.com/insin/nwb/blob/master/docs/guides/ReactComponents.md#developing-react-components-and-libraries-with-nwb).
Once I added react-element-to-jsx-string the build fails with the following error:
Failed to compile with 1 error.
ERROR in demo.1990f3e7.js from UglifyJs
Invalid assignment [./~/stringify-object/index.js:6,0][demo.1990f3e7.js:11007,34]
Is this an issue with stringify-object?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:10 (5 by maintainers)
Top Results From Across the Web
ERROR in main.xxx.js from UglifyJs Invalid assignment [main ...
When running the command: npm run build I get this error: clean-webpack-plugin: ..../internals/webpack/build has been removed.
Read more >Optimizing --> Invalid assignment error - Elastic Discuss
Optimizing --> Invalid assignment error My plugin runs perfect when using ./bin/kibana --dev the problem occurs once the production optimizing ...
Read more >uglify-js - npm
Start using uglify-js in your project by running `npm i uglify-js`. There are 4202 other projects in the npm registry using uglify-js.
Read more >SyntaxError: invalid assignment left-hand side - MDN Web Docs
The JavaScript exception "invalid assignment left-hand side" occurs when there was an unexpected assignment somewhere.
Read more >Can we use my plain JavaScript piece of code while creating ...
now while building its throwing error Unexpected token: keyword «const» ... tried with var as well but this time its giving Invalid Assignment...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
uglifyjs does not supports minifying ES2015 (this is sad) and stringify-object is not transpiled to ES5.
I found this on uglifyjs website, maybe try https://github.com/mishoo/UglifyJS2/tree/harmony and let me know!
Thanks guys!