iron-meteor / iron-cli

A scaffolding command line tool for Meteor applications.
640 stars 82 forks source link

Trouble at first run v 1.2.02 #212

Closed elidiazgt closed 8 years ago

elidiazgt commented 8 years ago

Exception in callback of async function: ReferenceError: EJSON is not defined at MiddlewareStack.concat (http://localhost:3000/packages/iron_middleware-stack.js?ff70621b6c5f6a406edc60600c4b76126dae21d6:303:25) at RouteController._runRoute (http://localhost:3000/packages/iron_router.js?dd5fa02859b6335661b94134bd9903be8eecf44d:542:17) at Function.Route.dispatch (http://localhost:3000/packages/iron_router.js?dd5fa02859b6335661b94134bd9903be8eecf44d:856:18) at route (http://localhost:3000/packages/iron_router.js?dd5fa02859b6335661b94134bd9903be8eecf44d:713:11) at boundNext (http://localhost:3000/packages/iron_middleware-stack.js?ff70621b6c5f6a406edc60600c4b76126dae21d6:425:31) at Meteor.bindEnvironment (http://localhost:3000/packages/meteor.js?9730f4ff059088b3f7f14c0672d155218a1802d4:999:22) at dispatch (http://localhost:3000/packages/iron_middleware-stack.js?ff70621b6c5f6a406edc60600c4b76126dae21d6:449:3) at http://localhost:3000/packages/iron_router.js?dd5fa02859b6335661b94134bd9903be8eecf44d:393:13 at Tracker.Computation._compute (http://localhost:3000/packages/tracker.js?7776276660c988c38fed448d8262b925dffb5bc3:349:36) at new Tracker.Computation (http://localhost:3000/packages/tracker.js?7776276660c988c38fed448d8262b925dffb5bc3:237:10)

chrisbutler commented 8 years ago

@elidiazgt this is actually an iron-router issue with meteor 1.2, the fix is pending here https://github.com/iron-meteor/iron-middleware-stack/pull/7

chrisbutler commented 8 years ago

in the meantime, you can just add the ejson package to your project manually, which will resolve the issue