Can't run meteor in production / minify project

Hello, Could someone please help me debug this issue ? When I deploy live my files are easily visible and not minified. When I try to run meteor --production for test I get following errors:

eval at (/Users/admin/.meteor/packages/standard-minifier-js/.1.2.2.vwa14x++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
:1547:18: SyntaxError: Unexpected token: name (version)
at new JS_Parse_Error (eval at
(/Users/admin/.meteor/packages/standard-minifier-js/.1.2.2.vwa14x++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
:1547:18)
at js_error (eval at
(/Users/admin/.meteor/packages/standard-minifier-js/.1.2.2.vwa14x++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
:1555:11)
at croak (eval at
(/Users/admin/.meteor/packages/standard-minifier-js/.1.2.2.vwa14x++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
:2094:9)
at token_error (eval at
(/Users/admin/.meteor/packages/standard-minifier-js/.1.2.2.vwa14x++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
:2102:9)
at unexpected (eval at
(/Users/admin/.meteor/packages/standard-minifier-js/.1.2.2.vwa14x++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
:2108:9)
at semicolon (eval at
(/Users/admin/.meteor/packages/standard-minifier-js/.1.2.2.vwa14x++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
:2128:56)
at simple_statement (eval at
(/Users/admin/.meteor/packages/standard-minifier-js/.1.2.2.vwa14x++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
:2319:73)
at eval (eval at
(/Users/admin/.meteor/packages/standard-minifier-js/.1.2.2.vwa14x++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1)
…,

Any help would be appreciated …!

Can someone pleasse help with this!!!

For anyone who experiences the same issue with --production failing or non-minified files showing on production this finally fixed it for me.

Remove the current "standard-minifier-js@xxxx"
Meteor install standard-minifier-js
Meteor update -all–packages
now run application.
You can do the same for the std-minfier-css
-Also make sure your mup.json file has debug set to false, and env to production

(If still doesnt work, create a new meteor project somewhere then check the versions of minifiers, then ensure your packages match those versions.)
I hope this helps someone out there as it took me months and multiple threads on here (with no solution) to finally fix.

Thanks!

1 Like