Title: [6.0-rc.0] Analytics: global is not defined · Issue #2303 · angular/angularfire · GitHub
Open Graph Title: [6.0-rc.0] Analytics: global is not defined · Issue #2303 · angular/angularfire
X Title: [6.0-rc.0] Analytics: global is not defined · Issue #2303 · angular/angularfire
Description: Version info Angular: 9.0.0-rc.12 Firebase: 7.8.0 AngularFire: 6.0.0-rc.0 Other (e.g. Ionic/Cordova, Node, browser, operating system): How to reproduce these conditions Steps to set up and reproduce Just importing the Analytics Module im...
Open Graph Description: Version info Angular: 9.0.0-rc.12 Firebase: 7.8.0 AngularFire: 6.0.0-rc.0 Other (e.g. Ionic/Cordova, Node, browser, operating system): How to reproduce these conditions Steps to set up and reproduc...
X Description: Version info Angular: 9.0.0-rc.12 Firebase: 7.8.0 AngularFire: 6.0.0-rc.0 Other (e.g. Ionic/Cordova, Node, browser, operating system): How to reproduce these conditions Steps to set up and reproduc...
Opengraph URL: https://github.com/angular/angularfire/issues/2303
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[6.0-rc.0] Analytics: global is not defined","articleBody":"\u003c!--\r\n\r\nIMPORTANT! YOU MUST FOLLOW THESE INSTRUCTIONS OR YOUR ISSUE WILL BE CLOSED.\r\n\r\nThank you for contributing to the Angular and Firebase communities!\r\n\r\nHave a usage question?\r\n=======================\r\nWe get lots of those and we love helping you, but GitHub is not the best place for them and they will be closed. Here are some resources to get help:\r\n\r\n- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide\r\n\r\nIf the official documentation doesn't help, try asking through our officially supported channels:\r\n\r\n- Firebase Google Group: https://groups.google.com/forum/#!forum/firebase-talk\r\n- Stack Overflow: https://stackoverflow.com/questions/tagged/angular (include the firebase and angularfire tags, too!)\r\n\r\n*Please avoid double posting across multiple channels!*\r\n\r\nThink you found a bug?\r\n=======================\r\nYeah, we're definitely not perfect! Please use the bug report template below and include a minimal repro when opening the issue.\r\n\r\nHave a feature request?\r\n========================\r\nGreat, we love hearing how we can improve our products! Remove the template below and\r\nprovide an explanation of your feature request. Provide code samples if applicable. Try to\r\nthink about what it will allow you to do that you can't do today? How will it make current\r\nworkarounds straightforward? What potential bugs and edge cases does it help to avoid?\r\n\r\n--\u003e\r\n\r\n\r\n### Version info\r\n\r\n\u003c!-- What versions of the following libraries are you using? Note that your issue may already\r\nbe fixed in the latest versions. --\u003e\r\n\r\n**Angular:** 9.0.0-rc.12\r\n\r\n**Firebase:** 7.8.0\r\n\r\n**AngularFire:** 6.0.0-rc.0\r\n\r\n**Other (e.g. Ionic/Cordova, Node, browser, operating system):**\r\n\r\n### How to reproduce these conditions\r\n\r\n**Steps to set up and reproduce**\r\n\r\nJust importing the Analytics Module\r\n\r\n```\r\nimports: [\r\n BrowserModule,\r\n AngularFireModule.initializeApp(environment.firebase),\r\n AngularFireAnalyticsModule,\r\n NoopAnimationsModule,\r\n ComponentsModule\r\n ],\r\n```\r\n\r\n### Debug output\r\n\r\n\u003cdetails\u003e\r\nUnhandled Promise rejection: global is not defined ; Zone: \u003croot\u003e ; Task: Promise.then ; Value: ReferenceError: \"global is not defined\"\r\n Angular 28\r\n AngularFireAnalytics@http://localhost:4200/vendor.js:74047:13\r\nAngularFireAnalytics_Factory@http://localhost:4200/vendor.js:74153:182\r\nhydrate@http://localhost:4200/vendor.js:46638:54\r\nget@http://localhost:4200/vendor.js:46400:33\r\ninjectInjectorOnly@http://localhost:4200/vendor.js:32635:33\r\nɵɵinject@http://localhost:4200/vendor.js:32645:57\r\nAngularFireAnalyticsModule_Factory@http://localhost:4200/vendor.js:74562:246\r\nhydrate@http://localhost:4200/vendor.js:46638:54\r\nget@http://localhost:4200/vendor.js:46400:33\r\nR3Injector/\u003c@http://localhost:4200/vendor.js:46330:25\r\nR3Injector@http://localhost:4200/vendor.js:46326:31\r\ncreateInjector@http://localhost:4200/vendor.js:46277:12\r\nNgModuleRef$1@http://localhost:4200/vendor.js:63231:47\r\ncreate@http://localhost:4200/vendor.js:63321:16\r\nbootstrapModuleFactory/\u003c@http://localhost:4200/vendor.js:68500:64\r\ninvoke@http://localhost:4200/polyfills.js:378:30\r\nonInvoke@http://localhost:4200/vendor.js:67718:33\r\ninvoke@http://localhost:4200/polyfills.js:377:36\r\nrun@http://localhost:4200/polyfills.js:137:47\r\nrun@http://localhost:4200/vendor.js:67548:91\r\nbootstrapModuleFactory@http://localhost:4200/vendor.js:68493:23\r\nbootstrapModule/\u003c@http://localhost:4200/vendor.js:68569:31\r\ninvoke@http://localhost:4200/polyfills.js:378:30\r\nrun@http://localhost:4200/polyfills.js:137:47\r\nscheduleResolveOrReject/\u003c@http://localhost:4200/polyfills.js:864:40\r\ninvokeTask@http://localhost:4200/polyfills.js:413:35\r\nrunTask@http://localhost:4200/polyfills.js:181:51\r\ndrainMicroTaskQueue@http://localhost:4200/polyfills.js:583:39\r\n\u003c/details\u003e\r\n\r\n### Expected behavior\r\n\r\nAnalytics running\r\n\r\n### Actual behavior\r\n\r\nWhole app is not running\r\n\r\n### Workaround\r\n\r\nBy adding `(window as any).global = window;` to `polyfill.ts` I can work around the issue for now\r\n","author":{"url":"https://github.com/vandres","@type":"Person","name":"vandres"},"datePublished":"2020-01-31T08:55:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2303/angularfire/issues/2303"}
| 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:6e03077f-eb3b-b250-859b-c12d69863fde |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92A6:BE985:1BCE82B:24F9895:6A5AE200 |
| html-safe-nonce | 65b74b3fe34dda1e9027a127fc98d464000ec78f3ec2652195dcf82c834b8ae7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkE2OkJFOTg1OjFCQ0U4MkI6MjRGOTg5NTo2QTVBRTIwMCIsInZpc2l0b3JfaWQiOiI3ODM0Njc3Mjc3ODIxMTY2MDgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1d556a3934360deaacf8291a30ae54c4972da21796fb216b8716500ae36da933 |
| hovercard-subject-tag | issue:557997094 |
| 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/angularfire/2303/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8fa70996b5bebb46826f8ea90076872b19e31f75b7c17a8221ba5410094ed53f/angular/angularfire/issues/2303 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8fa70996b5bebb46826f8ea90076872b19e31f75b7c17a8221ba5410094ed53f/angular/angularfire/issues/2303 |
| og:image:alt | Version info Angular: 9.0.0-rc.12 Firebase: 7.8.0 AngularFire: 6.0.0-rc.0 Other (e.g. Ionic/Cordova, Node, browser, operating system): How to reproduce these conditions Steps to set up and reproduc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vandres |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width