Title: universal prerendering fails with: import 'firebase/firestore' · Issue #2350 · angular/angularfire · GitHub
Open Graph Title: universal prerendering fails with: import 'firebase/firestore' · Issue #2350 · angular/angularfire
X Title: universal prerendering fails with: import 'firebase/firestore' · Issue #2350 · angular/angularfire
Description: Version info Angular: 9.0.0 Firebase: 7.10.0 AngularFire: 6.0.0-rc.1 How to reproduce these conditions Create an angular app: ng new prerender-test Add @angular/fire with schematics : ng add @angular/fire Add angular universal : ng add @...
Open Graph Description: Version info Angular: 9.0.0 Firebase: 7.10.0 AngularFire: 6.0.0-rc.1 How to reproduce these conditions Create an angular app: ng new prerender-test Add @angular/fire with schematics : ng add @angul...
X Description: Version info Angular: 9.0.0 Firebase: 7.10.0 AngularFire: 6.0.0-rc.1 How to reproduce these conditions Create an angular app: ng new prerender-test Add @angular/fire with schematics : ng add @angul...
Opengraph URL: https://github.com/angular/angularfire/issues/2350
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"universal prerendering fails with: import 'firebase/firestore'","articleBody":"### Version info \r\n\r\n**Angular:** 9.0.0\r\n**Firebase:** 7.10.0\r\n**AngularFire:** 6.0.0-rc.1\r\n\r\n### How to reproduce these conditions\r\n- Create an angular app: `ng new prerender-test`\r\n- Add @angular/fire with schematics : `ng add @angular/fire`\r\n- Add angular universal : `ng add @nguniversal/express-engine`\r\n- Add `import 'firebase/firestore';` in app.component\r\n- Run `npm run prerender`\r\n\r\n### Debug output\r\n\r\n** Errors in the JavaScript console **\r\n\r\n** Output from `firebase.database().enableLogging(true);` **\r\n```\r\nWARNING in ./node_modules/grpc/src/grpc_extension.js 32:12-33\r\nCritical dependency: the request of a dependency is an expression\r\nWARNING in ./node_modules/grpc/node_modules/node-pre-gyp/lib/pre-binding.js 20:22-48\r\nCritical dependency: the request of a dependency is an expression\r\nWARNING in ./node_modules/grpc/node_modules/node-pre-gyp/lib/util/versioning.js 17:20-67\r\nCritical dependency: the request of a dependency is an expression\r\nWARNING in ./node_modules/bytebuffer/dist/bytebuffer-node.js\r\nModule not found: Error: Can't resolve 'memcpy' in './node_modules/bytebuffer/dist'\r\n\r\nPrerendering 1 route(s) to /path/to/prerender-test/dist/browser\r\n(node:3430) UnhandledPromiseRejectionWarning: Error: package.json does not exist at /path/to/prerender-test/dist/package.json\r\n```\r\n\r\n### Expected behavior\r\nPrerender should not fail.\r\n\r\n### Actual behavior\r\nIt fails\r\n","author":{"url":"https://github.com/GrandSchtroumpf","@type":"Person","name":"GrandSchtroumpf"},"datePublished":"2020-03-10T19:52:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2350/angularfire/issues/2350"}
| 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:f1200345-eb1b-c7a6-aa5d-68217d41ec2f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9058:2ED0A6:1E5CC27:2859A92:6A5AF55D |
| html-safe-nonce | f3b5ce808d0e447576830ade31dba6a495cb7c50c54496fde4916bccf4b53bf3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDU4OjJFRDBBNjoxRTVDQzI3OjI4NTlBOTI6NkE1QUY1NUQiLCJ2aXNpdG9yX2lkIjoiNjE4NDk1ODQ3Mzc0OTA2NzEwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3ddd9729fb20dab1af7fbaee4207ea4254a5690ab5959f3635a66432dfc2bb8e |
| hovercard-subject-tag | issue:578822823 |
| 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/2350/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b423e35365b059945686a868c7fbfb03a897cb237bce47f0d3f4427efc4cc555/angular/angularfire/issues/2350 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b423e35365b059945686a868c7fbfb03a897cb237bce47f0d3f4427efc4cc555/angular/angularfire/issues/2350 |
| og:image:alt | Version info Angular: 9.0.0 Firebase: 7.10.0 AngularFire: 6.0.0-rc.1 How to reproduce these conditions Create an angular app: ng new prerender-test Add @angular/fire with schematics : ng add @angul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GrandSchtroumpf |
| 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