Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Unhandled Promise rejection: TypeError: Cannot set property 'name' of undefined #554

Closed
filipesilva opened this issue Dec 20, 2016 · 4 comments

Comments

@filipesilva
Copy link

Using zone.js@0.7.3, Angular 2 routerLink does not work properly whereas with zone.js@0.7.2 it did.

Here is a repro plunker: https://plnkr.co/edit/SYPR2SRi0xayQ693jJAB?p=preview
It is a simple list with a couple of links. Clicking on any link breaks the app with the following console error:

zone.js@0.7.3?main=browser:405 Unhandled Promise rejection: TypeError: Cannot set property 'name' of undefined
    at new EmptyError (VM20135 EmptyError.js:21)
    at FirstSubscriber._complete (VM20134 first.js:147)
// ...

In index.html if you revert https://unpkg.com/zone.js@0.7.3 to 0.7.2 the app works again.

@JiaLiPassion
Copy link
Collaborator

@filipesilva , sorry, it is my mistake, I didn't return this in PR #547, I'll make a PR now.

@filipesilva
Copy link
Author

@JiaLiPassion if I understand your PR correctly, it should only affect errors themselves. This scenario should not result in an error at all though, since it worked with 0.7.2 without throwing errors.

JiaLiPassion added a commit to JiaLiPassion/zone.js that referenced this issue Dec 20, 2016
…structor, and copy native error's properties
filipesilva added a commit to angular/quickstart that referenced this issue Dec 20, 2016
When angular/protractor#3848 is ready it should fix the webdriver types issues, and the pinning can be reverted.

The zone.js problem is being tracked on angular/zone.js#554.

Fix #325
filipesilva added a commit to angular/quickstart that referenced this issue Dec 20, 2016
When angular/protractor#3848 is ready it should fix the webdriver types issues, and the pinning can be reverted.

The zone.js problem is being tracked on angular/zone.js#554.

Fix #325
@chuckjaz
Copy link
Contributor

This has been fixed with 0.7.4

@blueskyfish
Copy link

Hi Guys,

Thanks for the solve of the zone.js in version 0.7.4. 👍 :-)

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

No branches or pull requests

4 participants