Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'currentHandlerInfos' of null in Ember 1.12.1 #34

Open
alvinvogelzang opened this issue Jun 10, 2015 · 1 comment

Comments

@alvinvogelzang
Copy link

In Ember 1.12.1 I got the following error:

Uncaught TypeError: Cannot read property 'currentHandlerInfos' of null.I tried to debug this and when I do this.get('router') I get function Class();

screen shot 2015-06-10 at 17 31 56

On a page where the breadcrumbs are working I also did this.get('router') and there I received a class with the properties as expected.

screen shot 2015-06-10 at 17 37 15

Do you have an idea why this is happening? Meanwhile I'll also try to fix it.

@alvinvogelzang
Copy link
Author

Okay I found why this error is happening. I subclassed your addon several times and I imported the router by using the import Router from 'app/router' instead of injecting it in an initializer. So now I'll inject the router and applicationController in every subclass / extension of your addon. Not really elegant. Do you think there's a better way to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant