Question

I am currently working with Meteor using the new meteor-jade templating plug-in which relies on the meteor release blaze-rc1. Currently I have the latest Meteor installed 0.7.2 so to run meteor with blaze rc1 I run the command sudo mrt --release blaze-rc1

Everything was working fine until I decided to add iron-router by using mrt add iron-router

I got the error:

While building package `jade`:
packages/compileJade/plugin/compiler.js:125: HTML is not defined (compiling tests/tests.jade)
  at _.extend.visitTag (packages/compileJade/plugin/compiler.js:125)
  at _.extend.visitNode (packages/compileJade/plugin/compiler.js:89)
  at _.extend.visitBlock (packages/compileJade/plugin/compiler.js:73)
  at _.extend.visitNode (packages/compileJade/plugin/compiler.js:83)
  at _.extend.visitBlock (packages/compileJade/plugin/compiler.js:73)
  at _.extend.compile (packages/compileJade/plugin/compiler.js:21)
  at sourceHandler (packages/compileJade/plugin/handler.js:11)


While building plugin `compileJade` in package `jade`:
error: no such package: 'html-tools'
error: no such package: 'spacebars-compiler'

And when I run sudo mrt --release blaze-rc1

The server crashes with ReferenceError: Router is not defined

Which means I cannot use the Router object and iron-router isnt working with blaze-rc1 release and jade template plugin.

What can I do to get this working?

Was it helpful?

Solution

Iron router requires to be checked out from a specific branch in order to be able to work with blaze. Therefore you need to modify smart.json file and change the iron-router key to look like the following:

"iron-router": {
  "git": "https://github.com/EventedMind/iron-router.git",
  "branch": "blaze-integration"
}

after this in your project directory, run:

$ mrt install
$ mrt update

Of course, this works only when you are running meteor from the blaze-rc1 release.

Beware, though, iron router is not released, neither is blaze. Therefore I suggest you check back at the google group for problems and workarounds.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top