reactredux template error on publish Error in vendorjs from UglifyJs #982

Closed
opened 2025-08-09 17:18:25 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @richardjharding on 2/25/2017

Just installed the templates using the latest tooling and created a new reactredux project

restore and build succeed but publish fails - it seems to be an error attempting to webpack the vendor chunk when in production mode

If I attempt to run the following at the cmd line
webpack.js --config webpack.config.vendor.js --env.prod

I get the following error

ERROR in vendor.js from UglifyJs SyntaxError: Unexpected token: name (b) [vendor.js:34464,5]

That line in vendor.js is

let b = new Big(0);

If I run webpack without the --env.prod switch it succeeds

I get a similar error with the react template

this looks to be an issue with outputing es6 that uglify doesn't understand?

*Originally created by @richardjharding on 2/25/2017* Just installed the templates using the latest tooling and created a new reactredux project restore and build succeed but publish fails - it seems to be an error attempting to webpack the vendor chunk when in production mode If I attempt to run the following at the cmd line ``webpack.js --config webpack.config.vendor.js --env.prod`` I get the following error ``ERROR in vendor.js from UglifyJs SyntaxError: Unexpected token: name (b) [vendor.js:34464,5]`` That line in vendor.js is ``let b = new Big(0);`` If I run webpack without the --env.prod switch it succeeds I get a similar error with the react template this looks to be an issue with outputing es6 that uglify doesn't understand?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#982
No description provided.