Hey guys,
I’m having some trouble with the popular Iron-Router packages. I’ve created a new empty demo project and added meteor add spiderable
to my project. Then I’ve called http://localhost:3000/?escaped_fragment= and everything worked fine (it sent the rendered page).
After that, I’ve added meteor add iron:router
to my project and tried it again - but got the following error:
Error: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.
at Object.Meteor._nodeCodeMustBeInFiber (packages/meteor/dynamics_nodejs.js:9:1)
at [object Object]._.extend.get (packages/meteor/dynamics_nodejs.js:21:1)
at [object Object].RouteController.lookupOption (packages/iron:router/lib/route_controller.js:66:1)
at new Controller.extend.constructor (packages/iron:router/lib/route_controller.js:26:1)
at [object Object].ctor (packages/iron:core/lib/iron_core.js:88:1)
at Function.Router.createController (packages/iron:router/lib/router.js:201:1)
at Function.Router.dispatch (packages/iron:router/lib/router_server.js:39:1)
at Object.router (packages/iron:router/lib/router.js:15:1)
at next (C:\Users\Dennis\AppData\Local\.meteor\packages\webapp\1.2.0\npm\node_modules\connect\lib\proto.js:190:15)
at packages/spiderable/spiderable_server.js:123:1
To check if it is a local configuration problem, I’ve deployed the project to http://justatestapp.meteor.com - but there I get the same error.
I’m just wondering if anyone here had the same problem? Is there an alternative way to make a page crawlable without spiderable?