Closed jd4rider closed 7 years ago
When you install a fresh copy of Meteor, you always get the latest version (currently 1.5.5). But when you invoke Meteor within your project, it automatically "downgrades" itself to the version that your project targets. In the background, Meteor checks .meteor/release
for the version and downloads library files for the older version.
So while the buildpack does indeed install version 1.5.5 at first, you'll see these lines indicate that the bundle is executing with version 1.4.3.2:
remote: + cd /tmp/build_b399186f3bdd976fb41133bbb1f5bb88
remote: ++ METEOR --version
remote: ++ ARGS=--version
remote: ++ HOME=/app/tmp/cache/meteor
remote: ++ /app/tmp/cache/meteor/.meteor/meteor --version
remote: + echo '-----> Target Meteor version: Meteor 1.4.3.2'
remote: -----> Target Meteor version: Meteor 1.4.3.2
The problem with the build has something to do with the minifier running into syntax problems:
remote: Errors prevented bundling:
remote: While minifying app code:
remote: eval at <anonymous>
remote: (/app/tmp/cache/meteor/.meteor/packages/standard-minifier-js/.1.2.3.2g4vpt++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
remote: <anonymous>:1547:18: SyntaxError: Unexpected token punc «(», expected punc «:»
remote: while minifying app/pubsub2.js
Looks like the minifier expected a :
but found a (
. Are you sure there isn't a syntax error in pubsub2.js
or some other problem with the minifier?
I have tried and tried to find the syntax error. It's weird because it works fine on cloud 9, so I'm not sure what the deal is with it.
I used a JS Linter and found the issue. It's fixed. Thanks
Type of problem
Summary
I have a meteor 1.4.3.2 app that works fine in Cloud 9 but when I try to push to heroku, it attempts to build it with a meteor 1.5 version and fails.
Contents of
.meteor/release
I can't seem to find this.
Buildpack version
Logs
Deployment target