So I am trying to do a basic meteor app at the moment.. here are the three files.
router.js:
Router.configure({
layoutTemplate : \'layout\',
load
I figured out the answer to my own question after searching around stackoverflow at other iron-router questions.. I have no idea why it worked, but it solved the issue. All I had to do was run:
meteor add ejson
and I no longer got my error.
Here is the question that answered my question (which was posted AFTER my question): Iron:router 1.0.9 Not working
The exception isn't very relevant, but I see two possibilities:
template
attribute in your Route.route();
For the first one:
Router.route("/", {
name : "homeIndex",
template : "homeIndex",
data : function() {
return {
message : "Welcome to the Rocket Shop"
}
}
});
For the second one: make sure your router.js
file is in client/lib/
folder.
Also, make sure that you have the iron-router
package in the .meteor/packages.js
file.