iron-meteor / iron-router

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

multiple template name error although there isn't. #1561

Closed ayazhussein closed 7 years ago

ayazhussein commented 7 years ago

everything was working before I updated to meteor 1.4.2.3 and updated iron router. I have only one 'Home' template but I keep getting this error. tried removing it and adding it again.. same error with the splash screen of "no route definition found", I tried changing my template name and edit the controller, I still get this error even though I don't have Home template anymore.


    at Function.Template.__checkName (templating-runtime.js?hash=c18de19…:55)
    at iron_router.js?hash=cb1b108…:2069
    at iron_router.js?hash=cb1b108…:2085
    at iron_router.js?hash=cb1b108…:2540```
zimme commented 7 years ago

Running into this problem also.

kax0 commented 7 years ago

Seems that bdb65840386a7558cc5e91047230ef94450ea96a(v1.1.0) introduced the problem, downgraded to: 1.0.12 and it worked.

marcoschwartz commented 7 years ago

Some error here when upgrading to 1.1.0, had to downgrade to 1.0.13

JackAdams commented 7 years ago

Great to see work being done on iron router again, but the above is correct. 1.1.0 broke backwards compatibility.

chrisbutler commented 7 years ago

@ayazhussein @zimme @kax0 @marcoschwartz @JackAdams i think i know what's happening

for some reason in IR 1.1.0, meteor is pulling in everything in the examples/ folder

BUT this doesn't happen when i clone the same version locally. anyone have any ideas?

ayazhussein commented 7 years ago

@chrisbutler I noticed that, but isn't there a method where it checks if template name exists? also, I noticed that someone on stackoverflow had the same problem but a totally different template name, something like 'product_something_etc' and still had the same error..

chrisbutler commented 7 years ago

@ayazhussein was that a recent post? do you have the link?

ayazhussein commented 7 years ago

@chrisbutler http://stackoverflow.com/questions/41626562/iron-router-updates

chrisbutler commented 7 years ago

@ayazhussein @zimme @kax0 @marcoschwartz @JackAdams can you guys try 1.1.1 from atmosphere?

zimme commented 7 years ago

Seems to be working with 1.1.1