Title: Angular 8 error on Safari 10 Mobile (iOS 10.3.3 iPad): "Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten" · Issue #15152 · angular/angular-cli · GitHub
Open Graph Title: Angular 8 error on Safari 10 Mobile (iOS 10.3.3 iPad): "Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten" · Issue #15152 · angular/angular-cli
X Title: Angular 8 error on Safari 10 Mobile (iOS 10.3.3 iPad): "Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten" · Issue #15152 · angular/angular-cli
Description: 🐞 Bug report Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] version - [ ] doc Is this a regression? Yes...
Open Graph Description: 🐞 Bug report Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] ver...
X Description: 🐞 Bug report Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] ver...
Opengraph URL: https://github.com/angular/angular-cli/issues/15152
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular 8 error on Safari 10 Mobile (iOS 10.3.3 iPad): \"Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten\"","articleBody":"# 🐞 Bug report\r\n\r\n### Command (mark with an `x`)\r\n\u003c!-- Can you pin-point the command or commands that are effected by this bug? -->\r\n\u003c!-- ✍️edit: -->\r\n```\r\n- [ ] new\r\n- [x] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n```\r\n\r\n### Is this a regression?\r\n\r\nYes, the previous version in which this bug was not present was: 7.x.x\r\n\r\n\r\n### Description\r\n\r\nIf you create an empty app with `ng new`, you cannot run it on Safari 10 Mobile (iOS 10.3.3), because it throws this error on console:\r\n\r\n```\r\n[Error] Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\r\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)\r\n\tassertZonePatched (polyfills-es5.2219c87348e60efc0076.js:1:3142)\r\n\tt (main-es5.d1c9edb576425b4c6fb4.js:1:78504)\r\n\tbootstrapModuleFactory (main-es5.d1c9edb576425b4c6fb4.js:1:85139)\r\n\tzUnb (main-es5.d1c9edb576425b4c6fb4.js:1:248620)\r\n\tf (runtime-es2015.703a23e48ad83c851e49.js:1:512)\r\n\t(anonymous function) (main-es5.d1c9edb576425b4c6fb4.js:1:88)\r\n\tf (runtime-es2015.703a23e48ad83c851e49.js:1:512)\r\n\tt (runtime-es2015.703a23e48ad83c851e49.js:1:378)\r\n\t(anonymous function) (runtime-es2015.703a23e48ad83c851e49.js:1:1418)\r\n\tModule Code (runtime-es2015.703a23e48ad83c851e49.js:1:1437)\r\n\tevaluate\r\n\tmoduleEvaluation\r\n```\r\n\r\nI already talked about this issue [HERE](https://github.com/angular/angular/issues/30928), but the discussion is dead, so I decided to create a new dedicated issue\r\nIn issue #30928 the problems seems fixed, but it's not true, because it happens also with a basic app created by `ng new`.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\n1. create a new project with `ng new ng-safari10` with routing and SCSS (probably they aren't mandatory to reproduce this issue)\r\n2. use this browserslist file content\r\n\r\n ```\r\n> 0.5%\r\nlast 2 versions\r\nFirefox ESR\r\nnot dead\r\nIE 11\r\nFirefox 67\r\nSafari 10\r\nios_saf 10\r\n ```\r\n\r\n3. Check the output of `npm browserslist` to see if there is 'ios_saf 10.0-10.2':\r\n\r\n```\r\nand_chr 75\r\nand_ff 67\r\nand_qq 1.2\r\nand_uc 11.8\r\nandroid 67\r\nbaidu 7.12\r\nchrome 75\r\nchrome 74\r\nchrome 73\r\nchrome 72\r\nedge 18\r\nedge 17\r\nfirefox 67\r\nfirefox 66\r\nfirefox 60\r\nie 11\r\nie_mob 11\r\nios_saf 12.2\r\nios_saf 12.0-12.1\r\nios_saf 11.3-11.4\r\nios_saf 10.0-10.2\r\nkaios 2.5\r\nop_mini all\r\nop_mob 46\r\nopera 58\r\nopera 57\r\nsafari 12.1\r\nsafari 12\r\nsafari 10\r\nsafari 5.1\r\nsamsung 9.2\r\nsamsung 8.2\r\nsamsung 4\r\n```\r\n\r\n2. build with `ng build --prod --aot` or `ng build`\r\n3. cd dist/ng-safari10 && lite-server\r\n\r\n\r\nThis is the package.json created automatically by `ng new`:\r\n\r\n```\r\n\"dependencies\": {\r\n \"@angular/animations\": \"~8.1.2\",\r\n \"@angular/common\": \"~8.1.2\",\r\n \"@angular/compiler\": \"~8.1.2\",\r\n \"@angular/core\": \"~8.1.2\",\r\n \"@angular/forms\": \"~8.1.2\",\r\n \"@angular/platform-browser\": \"~8.1.2\",\r\n \"@angular/platform-browser-dynamic\": \"~8.1.2\",\r\n \"@angular/router\": \"~8.1.2\",\r\n \"rxjs\": \"~6.4.0\",\r\n \"tslib\": \"^1.9.0\",\r\n \"zone.js\": \"~0.9.1\"\r\n },\r\n \"devDependencies\": {\r\n \"@angular-devkit/build-angular\": \"~0.801.2\",\r\n \"@angular/cli\": \"~8.1.2\",\r\n \"@angular/compiler-cli\": \"~8.1.2\",\r\n \"@angular/language-service\": \"~8.1.2\",\r\n \"@types/node\": \"~8.9.4\",\r\n \"@types/jasmine\": \"~3.3.8\",\r\n \"@types/jasminewd2\": \"~2.0.3\",\r\n \"codelyzer\": \"^5.0.0\",\r\n \"jasmine-core\": \"~3.4.0\",\r\n \"jasmine-spec-reporter\": \"~4.2.1\",\r\n \"karma\": \"~4.1.0\",\r\n \"karma-chrome-launcher\": \"~2.2.0\",\r\n \"karma-coverage-istanbul-reporter\": \"~2.0.1\",\r\n \"karma-jasmine\": \"~2.0.1\",\r\n \"karma-jasmine-html-reporter\": \"^1.4.0\",\r\n \"protractor\": \"~5.4.0\",\r\n \"ts-node\": \"~7.0.0\",\r\n \"tslint\": \"~5.15.0\",\r\n \"typescript\": \"~3.4.3\"\r\n }\r\n```\r\n\r\nIf you need more info, feel free to ask.\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\n[Error] Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\r\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)\r\n\tassertZonePatched (polyfills-es5.2219c87348e60efc0076.js:1:3142)\r\n\tt (main-es5.d1c9edb576425b4c6fb4.js:1:78504)\r\n\tbootstrapModuleFactory (main-es5.d1c9edb576425b4c6fb4.js:1:85139)\r\n\tzUnb (main-es5.d1c9edb576425b4c6fb4.js:1:248620)\r\n\tf (runtime-es2015.703a23e48ad83c851e49.js:1:512)\r\n\t(anonymous function) (main-es5.d1c9edb576425b4c6fb4.js:1:88)\r\n\tf (runtime-es2015.703a23e48ad83c851e49.js:1:512)\r\n\tt (runtime-es2015.703a23e48ad83c851e49.js:1:378)\r\n\t(anonymous function) (runtime-es2015.703a23e48ad83c851e49.js:1:1418)\r\n\tModule Code (runtime-es2015.703a23e48ad83c851e49.js:1:1437)\r\n\tevaluate\r\n\tmoduleEvaluation\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 8.1.2\r\nNode: 10.16.0\r\nOS: darwin x64\r\nAngular: 8.1.2\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.801.2\r\n@angular-devkit/build-angular 0.801.2\r\n@angular-devkit/build-optimizer 0.801.2\r\n@angular-devkit/build-webpack 0.801.2\r\n@angular-devkit/core 8.1.2\r\n@angular-devkit/schematics 8.1.2\r\n@ngtools/webpack 8.1.2\r\n@schematics/angular 8.1.2\r\n@schematics/update 0.801.2\r\nrxjs 6.4.0\r\ntypescript 3.4.5\r\nwebpack 4.35.2\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\nSafari 10 for iPad with iOS 10.3.3, if you need mode info about iPad model feel free to ask.","author":{"url":"https://github.com/Ks89","@type":"Person","name":"Ks89"},"datePublished":"2019-07-24T07:50:52Z","url":"https://github.com/angular/angular-cli/issues/15152"}
| 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:2d62ad88-c4f8-095c-4d12-5d7df8ca32f0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A12:172B92:15C3A37:1D0E362:6B013859 |
| html-safe-nonce | 65cb7926425c06a80ecd2a94cc99ed0d7bbeda079bec2c0c622e4cf7266e75bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTEyOjE3MkI5MjoxNUMzQTM3OjFEMEUzNjI6NkIwMTM4NTkiLCJ2aXNpdG9yX2lkIjoiMTQ0NzUxNjY3NjE5NDEyMTgxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f08f8cd49ce29f0a2fc91596f8e14e977c9f72d8c7b247fddaeea54a46c25057 |
| hovercard-subject-tag | issue:472189323 |
| 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-cli/15152/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6ade8521b5b4674cf8ce1c0262ae9b57ab241eeaedf02892e6c1aef5e373cc20/angular/angular-cli/issues/15152 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6ade8521b5b4674cf8ce1c0262ae9b57ab241eeaedf02892e6c1aef5e373cc20/angular/angular-cli/issues/15152 |
| og:image:alt | 🐞 Bug report Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] ver... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Ks89 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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