Meteor with mrt - iron: router: no such packaging

I am learning meteor 0.8.3and trying to configure basic routing with iron-router

My smart.jsoncontains:

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

I added this and then ran mrt installandmrt update

Then I did this and got this error:

$ meteor add iron:router
iron-router: updating npm dependencies -- connect...
iron:router: no such package

I can still start the application with mrt, and the application starts, but I get Uncaught TypeError: Cannot read property 'extend' of undefinedfrom layout.js: 92 and nothing is displayed on the page.

My Router block is as follows:

 Router.map( function() {
   this.route('home', { path: '/' });
   this.route('create');
   this.route('tasksShow', { 
     path: '/tasks/:_id',
     data: function() { return Tasks.findOne(this.params._id); }
   });
 });

What am I doing wrong, how can I make an iron router work?

+4
source share
1 answer

Install IronRouter:

Meteor 0.8.3 and older

$ mrt add iron-router

Meteor 0.9.0 and later

$ meteor add iron:router

: - () Windows 7 x64 (Meteor 0.8.3)

+10

All Articles