iron-meteor / iron-router

A client and server side router designed specifically for Meteor.
MIT License
1.98k stars 413 forks source link

Iron-router: No route definitions found. #1564

Closed dredl closed 7 years ago

dredl commented 7 years ago

Good Day! Try to use iron-router (v 1.1.0) on a new Meteor(v 1.4.2.3) project by simply installing meteor add iron:router Then i've made simple example https://github.com/iron-meteor/iron-router/tree/devel/examples/basic

After this i've got an error on browser console: image

And there is a message that the No route definitions found.

I spent one working day solve this problem but no results. Hope somebody help me. Thanks

nguyendnhat commented 7 years ago

Same with me I'm put file router.js in folder lib, but it not working

antoniogarcez commented 7 years ago

Me too. Cannot found this object: Package['iron:router'].Router;

To work, I have to downgrade to version 1.0.13 (meteor add iron:router@=1.0.13)

bryanlimy commented 7 years ago

+1

chrisbutler commented 7 years ago

@Sheriyev @nguyendnhat @antoniogarcez @bryanlimy can you guys try again with 1.1.1 from atmosphere?

dredl commented 7 years ago

@chrisbutler, I've updated with 1.1.1. Now it's working fine. Thank you :)

bryanlimy commented 7 years ago

@chrisbutler just tried 1.1.1 seems to be fine

antoniogarcez commented 7 years ago

@chrisbutler It's ok.

danielGalvao commented 7 years ago

1.1.2 fails for me

chrisbutler commented 7 years ago

@danielGalvao what errors are you getting?

danielGalvao commented 7 years ago

@chrisbutler iron:router No route definitions found. My routes.js in folder client/ I change my code with the example using my template name and not working too.

METEOR@1.4.3.1 iron:router@1.1.2

chrisbutler commented 7 years ago

@danielGalvao it works fine for me when i create a new app, add iron router, and add a route in the client folder