Title: Setting __Zone_disable_ZoneAwarePromise to true throws error · Issue #37349 · angular/angular · GitHub
Open Graph Title: Setting __Zone_disable_ZoneAwarePromise to true throws error · Issue #37349 · angular/angular
X Title: Setting __Zone_disable_ZoneAwarePromise to true throws error · Issue #37349 · angular/angular
Description: 🐞 bug report Affected Package zone.js Is this a regression? I tried with angular 8 on stackblitz and it also throws Error. Description Setting __Zone_disable_ZoneAwarePromise = true; should disable zonejs patching of Promise.then. Instea...
Open Graph Description: 🐞 bug report Affected Package zone.js Is this a regression? I tried with angular 8 on stackblitz and it also throws Error. Description Setting __Zone_disable_ZoneAwarePromise = true; should disable...
X Description: 🐞 bug report Affected Package zone.js Is this a regression? I tried with angular 8 on stackblitz and it also throws Error. Description Setting __Zone_disable_ZoneAwarePromise = true; should disable...
Opengraph URL: https://github.com/angular/angular/issues/37349
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting __Zone_disable_ZoneAwarePromise to true throws error","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n\r\nzone.js\r\n\r\n### Is this a regression?\r\n\r\nI tried with angular 8 on stackblitz and it also throws Error.\r\n\r\n### Description\r\n\r\nSetting `__Zone_disable_ZoneAwarePromise = true;` should disable zonejs patching of Promise.then. Instead, it throws `Promise has beed overwritten` error and stops.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nJust add `__Zone_disable_ZoneAwarePromise = true;` to index.html as per [documentation](https://github.com/angular/angular/blob/master/packages/zone.js/MODULE.md).\r\n\r\nhttps://stackblitz.com/edit/angular-bazsff\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nError: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\r\n\u003c/code>\u003c/pre>\r\n\r\nfrom [packages/zone.js/lib/zone.ts::assertZonePatched](https://github.com/angular/angular/blob/master/packages/zone.js/lib/zone.ts#L726).\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.1.6\r\nNode: 10.15.3\r\nOS: linux x64\r\n\r\nAngular: 9.1.7\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, platform-server\r\n... router, upgrade\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.901.6\r\n@angular-devkit/build-angular 0.901.6\r\n@angular-devkit/build-optimizer 0.901.6\r\n@angular-devkit/build-webpack 0.901.6\r\n@angular-devkit/core 9.1.6\r\n@angular-devkit/schematics 9.1.6\r\n@angular/cdk 9.2.1\r\n@angular/cli 9.1.6\r\n@ngtools/webpack 9.1.6\r\n@nguniversal/builders 9.1.1\r\n@nguniversal/common 9.1.1\r\n@nguniversal/express-engine 9.1.1\r\n@schematics/angular 9.1.6\r\n@schematics/update 0.901.6\r\nrxjs 6.5.5\r\ntypescript 3.8.3\r\nwebpack 4.42.0\r\n\r\nzone.js: 0.10.3\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\r\nPolyfills.js states that only 3 variables have affect:\r\n- __Zone_disable_requestAnimationFrame\r\n- __Zone_disable_on_property\r\n- __zone_symbol__UNPATCHED_EVENTS\r\n\r\nIf this is true, than maybe you only need to fix zonejs documentation, because it mentions a lot of other flags, __Zone_disable_ZoneAwarePromise being one of them.","author":{"url":"https://github.com/RatkoR","@type":"Person","name":"RatkoR"},"datePublished":"2020-05-29T17:01:27Z","url":"https://github.com/angular/angular/issues/37349"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b1c8c118-7517-0478-354a-e3c5bb7b6c30 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D534:1D20B7:1422EB2:1977B17:6B01620F |
| html-safe-nonce | 856dec42b3ef812d8e04fe28093ed81bac7e9280a42d17e605d30f2caefa7065 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTM0OjFEMjBCNzoxNDIyRUIyOjE5NzdCMTc6NkIwMTYyMEYiLCJ2aXNpdG9yX2lkIjoiNDQ5Mjg4OTIzOTE1NDk0MjQ4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eab44b7a88737e706904ebfaf64c997ff86876889afe42ca1c2e095242519458 |
| hovercard-subject-tag | issue:627409330 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/37349/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da0fd399f969df063c632029f1eeab6631b1c06409504932387e28d695af0c1c/angular/angular/issues/37349 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da0fd399f969df063c632029f1eeab6631b1c06409504932387e28d695af0c1c/angular/angular/issues/37349 |
| og:image:alt | 🐞 bug report Affected Package zone.js Is this a regression? I tried with angular 8 on stackblitz and it also throws Error. Description Setting __Zone_disable_ZoneAwarePromise = true; should disable... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RatkoR |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width