Modulus and standard-minifiers


#1

I’m getting an error when I try to deploy to modulus with the standard-minifiers package with Meteor 1.2.

Anyone know what that is, or how to work around it (other than removing the standard-minifiers package, which is what I"m doing now)?

Thanks,

Kevin N.

The error:

Errors prevented bundling:
While minifying app code:

/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:196:18:
Unexpected token: operator (>)
at new JS_Parse_Error
(/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:196:18)
at js_error
(/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:204:11)
at croak
(/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:675:9)
at token_error
(/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:683:9)
at unexpected
(/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:689:9)
at expr_atom
(/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:1196:9)
at maybe_unary
(/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:1358:19)
at expr_ops
(/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:1393:24)
at maybe_conditional
(/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:1398:20)
at maybe_assign
(/Users/kevin/.meteor/packages/standard-minifiers/.1.0.1.8s5wsk++os+web.browser+web.cordova/plugin.minifyStd.os/npm/minifiers/node_modules/uglify-js/lib/parse.js:1422:20)


undefined
[Error] Error: Conversion failed.

#2

Do you ever solve this? Now I’m getting it, also on modulus, exact same stack trace


#3

Hrm totally unrelated to modulus. also happens locally with meteor build. presumably related to es6 transforms somehow.


#4

Yes, you must add the ecmascript package. It’s a bit strange that ecmascript works at all without that, but the only thing that doesn’t seem to work without it is minification. And maybe server side ecmascript? Whatever the case, everything works if you add ecmascript package. You may also want to add the es5-shim package for older browsers.


#5

Remove standard-minifier-js and add ecmascript. This should solve :wink: