Uncaught TypeError: Unable to call 'connectOutlet' method from undefined

I get the parent view undefined for my load route handler - but only when the first page is moved to first place in my application.

http://www.sentinel21.com/#/posts

If you visit the first page or root directory, the boot handler seems to load correctly. I am not sure what I am doing so that in this case the download route does not display properly.

Here is the download route.

App.LoadingRoute = Ember.Route.extend({ renderTemplate: function(){ this.render('loading', { outlet: "loading", into: "application" }); } }); 

My application template has this code.

 <div class="content"> <div class="column row"></div> {{outlet "loading"}} {{outlet}} </div> 

All the code is available on github , and this is probably the easiest place to view templates that are precompiled.

+6
source share
1 answer

I had the same problem, and that was because my application template was named "app.handlebars", but it had to be called "application.handlebars". As soon as I changed it, a socket was found, and everything worked as expected.

+1
source

Source: https://habr.com/ru/post/956746/


All Articles