-
Notifications
You must be signed in to change notification settings - Fork 407
zone.js v0.8.13 Produces Extensive Zone errors in Unit tests-- 'Unhandled Promise rejection:', 'Cannot create property '__creationTrace__' #832
Comments
Can be reproduce in plunkr here: https://plnkr.co/edit/SNR831sznvMsDjdFJ3MN?p=preview |
I have the same thing when running in Webpack DevServer or unit tests in phantomjs. Works fine when reverting back to |
Thank you for posting the issue, I have made a PR to fix this one. |
I got same issues in my tests (angular 4.2.6). And for linux only. Windows don't cause that problems. |
reverting to 0.8.12 does it for now |
@pumano not true unfortunately - I can confirm it does happen on windows |
Facing the same issue here as well but on Windows using zone.js 0.8.13 |
sorry for the breaking error, it has been fixed in #834, please wait for the next version. |
I've had a previous project in another machine working perfectly with zone.js 0.8.5. Replicated the project today in another machine and, by keeping zone.js version 0.8.5 I'm now experiencing this issue in both testing and regular development, not sure how it's possible but it looks like it doesn't only affect the latest version. Maybe it's related to other packages aswell? I'm experiencing the issue in electron, stacktrace is:
|
Make sure your package.json does not have '^' before 0.8.5 :)
…On Jul 13, 2017 5:52 PM, "Marco" ***@***.***> wrote:
I've had a previous project in another machine working perfectly with
zone.js 0.8.5.
Replicated the project today in another machine and, by keeping zone.js
version 0.8.5 I'm now experiencing this issue in both testing and regular
developing, not sure how it's possible but it looks like it doesn't only
affect the latest version. Maybe it's related to other packages aswell?
I'm experiencing the issue in electron, stacktrace is:
Unhandled Promise rejection: Cannot create property '__creationTrace__' on string '__zone_symbol__optimizedZoneEventTask' ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot create property '__creationTrace__' on string '__zone_symbol__optimizedZoneEventTask'
at Object.onScheduleTask (polyfills.js:5032)
at ZoneDelegate.scheduleTask (polyfills.js:5502)
at Object.onScheduleTask (polyfills.js:5398)
at ZoneDelegate.scheduleTask (polyfills.js:5502)
at Zone.scheduleTask (polyfills.js:5333)
at Zone.scheduleEventTask (polyfills.js:5359)
at polyfills.js:6659
at BrowserPlatformLocation.webpackJsonp.27.BrowserPlatformLocation.onPopState (vendor.js:17581)
at HashLocationStrategy.webpackJsonp.6.HashLocationStrategy.onPopState (vendor.js:27430)
at new Location (vendor.js:27219) TypeError: Cannot create property '__creationTrace__' on string '__zone_symbol__optimizedZoneEventTask'
at Object.onScheduleTask
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#832 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQ8XmlRXJvnax37gHwf1bWlJc55Yv_l0ks5sNi9DgaJpZM4OWP2u>
.
|
@guivanrv wops, had ^ indeed! Thanks! |
`zone.js@0.8.13` has some bugs that break our CI runs. These are being tracked in angular/zone.js#832. Until a these are fixed and a new versions is released, we should pin to `zone.js@0.8.12`. Another PR should go up then and unpin to `zone.js@^0.8.14`.
`zone.js@0.8.13` has some bugs that break our CI runs. These are being tracked in angular/zone.js#832. Until a these are fixed and a new versions is released, we should pin to `zone.js@0.8.12`. Another PR should go up then and unpin to `zone.js@^0.8.14`.
`zone.js@0.8.13` has some bugs that break our CI runs. These are being tracked in angular/zone.js#832. Until a these are fixed and a new versions is released, we should pin to `zone.js@0.8.12`. Another PR should go up then and unpin to `zone.js@^0.8.14`.
Fixing zone.js to 0.8.12 fixed my issue too, thank you. |
Set zone.js to fix version 0.8.12 until introduced bug is fixed: angular/zone.js#832
- move landing info to LandingComponent - add PageNotFoundComponent for 404's - update unit tests - degrade zone.js version to resolve unit test errors: angular/zone.js#832 - alphabetize styles
When is the new version planned ? As it's a regression, a quick release just for this would be nice. |
Haven't updated but I believe v0.8.14 was released earlier today with a fix for this via #834 |
Yes. I can confirm that this is now resolved with the latest release of
zone.js
Kim Gentes / Worship Team LLC
…On Jul 18, 2017 6:53 PM, "Emilio" ***@***.***> wrote:
Haven't updated but I believe v0.8.14 was released earlier today with a
fix for this via #834 <#834>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#832 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFBdi-GzJOUXO-kM2qo4i2KDl3Z2q_DCks5sPWG1gaJpZM4OWP2u>
.
|
👌 |
As I understand it released at npm as same version 0.8.13. |
Nope. npm has 0.8.14. See https://www.npmjs.com/package/zone.js |
the latest version of zone.js handled it perfectly thanks |
`zone.js@0.8.13` has some bugs that break our CI runs. These are being tracked in angular/zone.js#832. Until a these are fixed and a new versions is released, we should pin to `zone.js@0.8.12`. Another PR should go up then and unpin to `zone.js@^0.8.14`.
Using:
If I use zone.js 0.8.12 my 111 Client side unit tests work fine. After upgrading to zone.js 0.8.13 I get repeating zone errors as you can see below.
The newest release of zone.js fails extensively on almost all of related Angular unit tests now. I am seeing this throw two errors:
First one:
Second one:
The text was updated successfully, but these errors were encountered: