I’m on Meteor 1.3.5 and can run es6 code locally. But if I try to deploy with MUP I get errors:
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Building Started: /Users/aadams/Meteors/my-project
Errors prevented bundling:
While minifying app code:
/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:196:18:
Unexpected token punc «(», expected punc «:»
at new JS_Parse_Error
(/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:196:18)
at js_error
(/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:204:11)
at croak
(/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:675:9)
at token_error
(/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:683:9)
at expect_token
(/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:696:9)
at expect
(/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:699:36)
at
/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:1252:13
at
/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:722:24
at expr_atom
(/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:1182:35)
at maybe_unary
(/Users/aadams/.meteor/packages/standard-minifier-js/.1.0.8.kh6vnn++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/lib/parse.js:1358:19)
=> Build Error. Check the logs printed above.
npm ERR! Darwin 15.6.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "deploy-prod"
npm ERR! node v0.10.32
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! fp@1.0.0 deploy-prod: `cd ../staging && mupc deploy`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fp@1.0.0 deploy-prod script 'cd ../staging && mupc deploy'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cd ../staging && mupc deploy
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs fp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls fp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/aadams/Meteors/my-project/npm-debug.log
And the npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'run', 'deploy-prod' ]
2 info using npm@3.10.5
3 info using node@v0.10.32
4 verbose run-script [ 'predeploy-prod', 'deploy-prod', 'postdeploy-prod' ]
5 info lifecycle fp@1.0.0~predeploy-prod: fp@1.0.0
6 silly lifecycle fp@1.0.0~predeploy-prod: no script for predeploy-prod, continuing
7 info lifecycle fp@1.0.0~deploy-prod: fp@1.0.0
8 verbose lifecycle fp@1.0.0~deploy-prod: unsafe-perm in lifecycle true
9 verbose lifecycle fp@1.0.0~deploy-prod: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/aadams/Meteors/my-project/node_modules/.bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/aadams/Meteors/mongodb-3.0.12/bin
10 verbose lifecycle fp@1.0.0~deploy-prod: CWD: /Users/aadams/Meteors/my-project
11 silly lifecycle fp@1.0.0~deploy-prod: Args: [ '-c', 'cd ../staging && mupc deploy' ]
12 silly lifecycle fp@1.0.0~deploy-prod: Returned: code: 1 signal: null
13 info lifecycle fp@1.0.0~deploy-prod: Failed to exec deploy-prod script
14 verbose stack Error: fp@1.0.0 deploy-prod: `cd ../staging && mupc deploy`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:242:16)
14 verbose stack at EventEmitter.emit (events.js:98:17)
14 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at ChildProcess.emit (events.js:98:17)
14 verbose stack at maybeClose (child_process.js:756:16)
14 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:823:5)
15 verbose pkgid fp@1.0.0
16 verbose cwd /Users/aadams/Meteors/my-project
17 error Darwin 15.6.0
18 error argv "node" "/usr/local/bin/npm" "run" "deploy-prod"
19 error node v0.10.32
20 error npm v3.10.5
21 error code ELIFECYCLE
22 error fp@1.0.0 deploy-prod: `cd ../staging && mupc deploy`
22 error Exit status 1
23 error Failed at the fp@1.0.0 deploy-prod script 'cd ../staging && mupc deploy'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the fp package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error cd ../staging && mupc deploy
23 error You can get information on how to open an issue for this project with:
23 error npm bugs fp
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls fp
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
And this all happends when I change a helper method from es5 style:
helperMethod: function() {
return true;
}
to es6 style:
helperMethod() {
return true;
}
Again, this works on my local box.