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

Route throws an exception in IE 11 & Safari #9416

Closed
gugamm opened this issue Jun 21, 2016 · 3 comments
Closed

Route throws an exception in IE 11 & Safari #9416

gugamm opened this issue Jun 21, 2016 · 3 comments

Comments

@gugamm
Copy link

gugamm commented Jun 21, 2016

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Angular 2 rc2 - Routing throws an exception in INTERNET EXPLORER 11 when using the back button more than once

Not only that. Components lifecycle hooks are not called correctly. Duplicate of (#7722)

Expected/desired behavior

It should not throw an exception

Reproduction of the problem

Open plunker provided by official documentation :

https://angular.io/docs/ts/latest/guide/router.html
http://plnkr.co/edit/h0o2IuoZYvXGtC1ejQBl?p=preview

Do some navigation

Press f12(open developer console)

Use back button more than once

This is the result :

Unhandled Promise rejection: EXCEPTION: Error in :0:0
ORIGINAL EXCEPTION: TypeError: Unable to get property 'unsubscribe' of undefined or null reference
ORIGINAL STACKTRACE:
TypeError: Unable to get property 'unsubscribe' of undefined or null reference
at HeroListComponent.prototype.ngOnDestroy (eval code:32:9)
at _View_HeroListComponent_Host0.prototype.destroyInternal (Function code:33:3)
at AppView.prototype.destroyLocal (eval code:11773:13)
at DebugAppView.prototype.destroyLocal (eval code:11935:17)
at AppView.prototype.destroyRecurse (eval code:11761:13)
at AppView.prototype.destroy (eval code:11747:13)
at ComponentRef
.prototype.destroy (eval code:8889:57)
at RouterOutlet.prototype.deactivate (eval code:47:13)
at ActivateRoutes.prototype.deactivateOutletAndItChildren (eval code:381:13)
at ActivateRoutes.prototype.activateRoutes (eval code:363:13)
ERROR CONTEXT:
[object Object] ; Zone: ; Task: Promise.then ; Value: EXCEPTION: Error in :0:0
ORIGINAL EXCEPTION: TypeErro
"Unhandled Promise rejection:"
"EXCEPTION: Error in :0:0

Please tell us about your environment:

  • Angular version: 2.0.0-rc.2
  • Browser: [IE 11]
@CaptainCodeman
Copy link

Yes, same on Safari

@gugamm gugamm changed the title Route throws an exception in IE 11 & Probably Safari Route throws an exception in IE 11 & Safari Jun 22, 2016
@vsavkin vsavkin removed their assignment Jun 24, 2016
@vsavkin vsavkin self-assigned this Jul 15, 2016
@vsavkin
Copy link
Contributor

vsavkin commented Jul 15, 2016

Fixed #10096

@vsavkin vsavkin closed this as completed Jul 15, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants