Skip to content

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

Description

@Lynn-H

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions