Title: zone-mix: Cannot read property 'eventNames' of undefined · Issue #31626 · angular/angular · GitHub
Open Graph Title: zone-mix: Cannot read property 'eventNames' of undefined · Issue #31626 · angular/angular
X Title: zone-mix: Cannot read property 'eventNames' of undefined · Issue #31626 · angular/angular
Description: After upgrading from Angular 7 to Angular 8, our Electron builds break seemingly because of zone-mix: polyfills.js:7635 Uncaught TypeError: Cannot read property 'eventNames' of undefined at eventTargetPatch (polyfills.js:7635) at polyfil...
Open Graph Description: After upgrading from Angular 7 to Angular 8, our Electron builds break seemingly because of zone-mix: polyfills.js:7635 Uncaught TypeError: Cannot read property 'eventNames' of undefined at eventTa...
X Description: After upgrading from Angular 7 to Angular 8, our Electron builds break seemingly because of zone-mix: polyfills.js:7635 Uncaught TypeError: Cannot read property 'eventNames' of undefined at...
Opengraph URL: https://github.com/angular/angular/issues/31626
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"zone-mix: Cannot read property 'eventNames' of undefined","articleBody":"After upgrading from Angular 7 to Angular 8, our Electron builds break seemingly because of zone-mix:\r\n\r\n```\r\npolyfills.js:7635 Uncaught TypeError: Cannot read property 'eventNames' of undefined\r\n at eventTargetPatch (polyfills.js:7635)\r\n at polyfills.js:8003\r\n at Function.push../node_modules/zone.js/dist/zone-mix.js.Zone.__load_patch (polyfills.js:5274)\r\n at polyfills.js:8001\r\n at push../node_modules/zone.js/dist/zone-mix.js.performance (polyfills.js:5185)\r\n at Object../node_modules/zone.js/dist/zone-mix.js (polyfills.js:5187)\r\n at __webpack_require__ (runtime.js:84)\r\n at Module../src/polyfills-electron.ts (polyfills.js:8476)\r\n at __webpack_require__ (runtime.js:84)\r\n at Object.1 (polyfills.js:8551)\r\n```\r\n\r\nTaking a look at code, it is calling `api.getGlobalObjects()` and then accessing `.eventNames`, \r\n\r\n```\r\n var _a = api.getGlobalObjects(), eventNames = _a.eventNames, ...\r\n```\r\n\r\nbut the definition in effect is from zone-mix.js:644\r\n\r\n```\r\n getGlobalObjects: function () { return undefined; },\r\n```\r\n\r\nThe polyfills file in use for our Electron builds are:\r\n\r\n```\r\nimport 'core-js/es7/reflect';\r\nimport 'zone.js/dist/zone-mix'; // Included with Angular CLI.\r\nimport 'zone.js/dist/zone-patch-electron';\r\n```\r\n\r\nThe installed version of zone.js is 0.9.1. \r\n\r\nI checked STANDARD-APIS.md and it does still recommend 'zone-mix' for Node-capable Electron builds (`nodeIntegration = true`). Tried removing `zone-patch-electron` but there's no change.\r\n\r\nIs this still the recommended polyfills.ts setup for Angular apps running in Electron with Node integration turned on?\r\n\r\nThe error is not present if I opt for `zone.js/dist/zone` (the standard) as opposed to zone-mix, but I assume I'll only have Zone integration for browser APIs and not Node.js ones, so that's not ideal.","author":{"url":"https://github.com/rezonant","@type":"Person","name":"rezonant"},"datePublished":"2019-07-09T03:44:27Z","url":"https://github.com/angular/angular/issues/31626"}
| 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:0d750556-07ef-229b-c92f-6bdadaa2da42 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD88:2BE220:135C82C:19DFE69:6B0129EA |
| html-safe-nonce | 44059af46f905d6d7809957b906d38cdb1e5ddb2a89b27fc4439e1bc97588a3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDg4OjJCRTIyMDoxMzVDODJDOjE5REZFNjk6NkIwMTI5RUEiLCJ2aXNpdG9yX2lkIjoiMjg3NjcyNDA4MTEwMzgwOTAwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eac05b2769dc19f4dc846b59d8d94f339eef8adb9f31edc4a22dd5ca8d3aab1a |
| hovercard-subject-tag | issue:469830763 |
| 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/31626/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af6a47120f2628d1ca67850c5255fb3f5405be1bbaa805d529437a4cf6222c76/angular/angular/issues/31626 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af6a47120f2628d1ca67850c5255fb3f5405be1bbaa805d529437a4cf6222c76/angular/angular/issues/31626 |
| og:image:alt | After upgrading from Angular 7 to Angular 8, our Electron builds break seemingly because of zone-mix: polyfills.js:7635 Uncaught TypeError: Cannot read property 'eventNames' of undefined at eventTa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rezonant |
| 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