My smart.json contains:
< p>
{
packages: {
iron-router: {
git: https://github.com/EventedMind/iron-router.git,
branch: blaze-integration
}
}
}
I added this, then ran mrt install and mrt update
and then I 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 use mrt to run the application, and the application starts, but I get Uncaught TypeError: Unable to read undefined attributes from layout.js: 92′ extend’, and nothing is displayed on the page.
My router block looks like this:
Router.map( function() {< br /> this.route('home', {path:'/' });
this.route('create');
this.route('tasksShow', {
path:'/tasks/:_id',
data: function() {return Tasks.findOne(this.params._id); }
});
});
What did I do wrong, how can I make the iron router work?
Meteor 0.8.3 and above
$mrt add iron router
Meteor 0.9.0 and updates
$meteor add iron: router
More about this issue For more information, please visit: Installation issues with iron-router (newest) on Windows 7 x64 (Meteor 0.8.3)
I am learning Meteor 0.8.3 and try to use it iron-router sets up some basic routes
My smart.json contains:
{
packages: {
iron-router: {
git: https://github.com/EventedMind/iron-router.git,
branch: blaze-integration
}
}
}
I added this, and then ran mrt install and mrt 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 run with mrt Application, and the application starts, but I get Uncaught TypeError: Unable to read the undefined attribute’extend’ from layout.js:92, and nothing is displayed on the page.
My router The block looks like this:
Router.map( function() {
this.route('home', {path:'/' });< br /> this.route('create');
t his.route('tasksShow', {
path:'/tasks/:_id',
data: function() {return Tasks.findOne(this.params._id); }
});
});
What did I do wrong, how can I make the iron router work?
IronRouter installation:
Meteor 0.8.3 and above
$mrt add iron router
Meteor 0.9.0 and updates
$meteor add iron: router
For more information on this issue, please visit: Installation issues with iron-router (newest) on Windows 7 x64 (Meteor 0.8.3)