-
Notifications
You must be signed in to change notification settings - Fork 12k
Router outlet broken #166
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
Comments
Hi, do you maybe have any example ready to test with? |
Maybe just Rx should be loaded before Angular2, can you check please? |
I ran into this with routes generated via #139. The I am unsure of how to just load Rx before the rest with broccoli though, how do I do it? |
Just add this line before |
That did not work. I used the order on the quickstart and it works:
...except that the es6-shim errors. If I take it out it's fine. I can't see why it would error though, since its whole purpose is the be the very first think so it can shim missing functionality. |
Okay, then just add this fix to your PR. I will check about es6-shim errors On Monday, 1 February 2016, Filipe Silva [email protected] wrote:
|
Tried adding the shim separately, outside I'd prefer not to change up that order from within my PR because it's not related to routes per se, but rather to dependency loading. I'll gladly open up a new PR for it though, but might as well also fix the shim thing. |
Hi @filipesilva. Is this working now? |
No, still has the problem with the shim being loaded via broccolli. I haven't had time to look into it more. |
Please try the following order, if it works for you; inputFiles: [
'**/angular2-polyfills.js',
'**/system.src.js',
'**/system-polyfills.js',
'**/es6-shim.js',
'**/Rx.js',
'**/angular2.dev.js',
'**/http.dev.js',
'**/router.dev.js',
'**/upgrade.dev.js',
], if its okay please provide PR with the fix, otherwise please tell me how to reproduce an error. |
any news? |
@jkuri just tried the order you said, still does not work. We have to follow the order in the guides though: To reproduce, do the following:
This is what appears: Now open
Stop and restart Comment out the |
@filipesilva thanks for helping with reproduce, I got same errors. '**/angular2-polyfills.js',
'**/es6-shim.js',
'**/system-polyfills.js',
'**/system.src.js',
'**/Rx.js',
'**/angular2.dev.js',
'**/http.dev.js',
'**/router.dev.js',
'**/upgrade.dev.js' I think adding |
@jkuri that order doesn't fix it for me... are you sure you didn't do something else? I tried using that order on a fresh copy of master. I've notice that if you restart I made a #170 where |
Hm, guess I ran into that case you mention. I don't understand neither. Maybe some broccolli concat issue? Don't know. |
I even thought it might be related to the ember-cli auto reload somehow and changed the order of that with no results. Really weird issue.... |
I gave this issue one more shot, I found order which works properly with |
@jkuri I tested your PR and it works. I also agree it's better because of what you said. There's still something fishy going on with broccolli and importing the @cironunes can you have a look at the PR before I merge it? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The last two commits (e2c8795 and 2efc9a1) seem to have broken the router. Somehow,
ngOnInit
events on child routes are not firing.Undoing these commits causes them to fire again. I suspect this might be the issue, in that dependencies are loaded out of order ( previous order ) and thus cause parts of angular to not have the required dependencies.
/cc @cironunes @jkuri
The text was updated successfully, but these errors were encountered: