Ember Unable to read property "shouldSuperede" from undefined with new route

I just added a new route to my application, and when I go to it, Ember gives the error "I can not read the property" shouldSuperede "from undefined".

Here is my router:

App.Router.map ()-> @resource 'pages', -> @resource 'page', {path: ':page_id'}, -> # lots of routes under here, all work @route 'design' # new route that error happens when transition to 

I started looking at the router code, but I'm really not sure what is going on, and I hope that there is something obvious that I am missing. If I add some entries to ember, actually the error occurs when doing some search on the page’s route here, but again, that the route itself works fine.

It also doesn’t matter if I go from the page route or not, if I just reload the page with it already on the design route, I get the same error:

 Transitioned into 'design' ember.js?body=1:14464 Uncaught TypeError: Cannot read property 'shouldSupercede' of undefined 
+8
source share
2 answers

One reason for this problem is {{#link-to}} , which points to a route with a dynamic segment without providing this segment.

The error message was clearly not very useful to point in the right direction, unfortunately.

+15
source share

I had this problem when I had a route with a dynamic segment and did not pass the value to this dynamic segment. Is there no way to make an additional dynamic segment in Ember? may be useful to you.

0
source share

All Articles