Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meteor 1.4 AssertionError: "undefined" === "function" #24

Open
Lynn-H opened this issue Jul 28, 2016 · 0 comments
Open

Meteor 1.4 AssertionError: "undefined" === "function" #24

Lynn-H opened this issue Jul 28, 2016 · 0 comments

Comments

@Lynn-H
Copy link

Lynn-H commented Jul 28, 2016

Meteor is now at 1.4: http://info.meteor.com/blog/announcing-meteor-1.4

The bluemix meteor buildpack picks up the 1.4 bootstrap, but the compile has not been changed to install node4 so you get the following error in bluemix when the application tries to start:

2016-07-28T09:56:24.854+0100[DEA/182]OUTStarting app instance (index 0) with guid 4338337c-4f95-4079-a663-cbe0ef82eb29
2016-07-28T09:56:30.362+0100[App/0]ERRassert.js:93
2016-07-28T09:56:30.362+0100[App/0]ERR
2016-07-28T09:56:30.363+0100[App/0]ERR throw new assert.AssertionError({
2016-07-28T09:56:30.363+0100[App/0]ERR ^
2016-07-28T09:56:30.366+0100[App/0]ERR at Module._compile (module.js:456:26)
2016-07-28T09:56:30.366+0100[App/0]ERR at Function.Module._load (module.js:312:12)
2016-07-28T09:56:30.366+0100[App/0]ERRAssertionError: "undefined" === "function"
2016-07-28T09:56:30.366+0100[App/0]ERR at Object. (/home/vcap/app/deploy/bundle/programs/server/boot.js:9:13)
2016-07-28T09:56:30.366+0100[App/0]ERR at require (module.js:380:17)
2016-07-28T09:56:30.366+0100[App/0]ERR at Object.Module._extensions..js (module.js:474:10)
2016-07-28T09:56:30.366+0100[App/0]ERR at Module.load (module.js:356:32)
2016-07-28T09:56:30.366+0100[App/0]ERR at Module.require (module.js:364:17)
2016-07-28T09:56:30.366+0100[App/0]ERR at Object. (/home/vcap/app/deploy/bundle/programs/server/mini-files.js:108:24)
2016-07-28T09:56:30.366+0100[App/0]ERR at Module._compile (module.js:456:26)
2016-07-28T09:56:30.366+0100[App/0]ERR at wrapPathFunction (/home/vcap/app/deploy/bundle/programs/server/mini-files.js:77:10)

Because mini-files.js:108 is specifying a node 4 function.

I have tried changing compile line to:
node_version=$(curl --silent --get https://semver.io/node/resolve/4.4.x)
which works fine with a simple try-meteor app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant