Angular: 9.0.0
Firebase: 7.10.0
AngularFire: 6.0.0-rc.1
ng new prerender-testng add @angular/fireng add @nguniversal/express-engineimport 'firebase/firestore'; in app.componentnpm run prerender* Errors in the JavaScript console *
* Output from firebase.database().enableLogging(true); *
WARNING in ./node_modules/grpc/src/grpc_extension.js 32:12-33
Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/grpc/node_modules/node-pre-gyp/lib/pre-binding.js 20:22-48
Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/grpc/node_modules/node-pre-gyp/lib/util/versioning.js 17:20-67
Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/bytebuffer/dist/bytebuffer-node.js
Module not found: Error: Can't resolve 'memcpy' in './node_modules/bytebuffer/dist'
Prerendering 1 route(s) to /path/to/prerender-test/dist/browser
(node:3430) UnhandledPromiseRejectionWarning: Error: package.json does not exist at /path/to/prerender-test/dist/package.json
Prerender should not fail.
It fails
Addressing in #2347. Discussion here #2320. Work-arounds detailed in the comments. TLDR add @firebase/firestore to externalDependencies in your angular.json and I will cut the other fixes in the next RC.
Most helpful comment
Addressing in #2347. Discussion here #2320. Work-arounds detailed in the comments. TLDR add
@firebase/firestoretoexternalDependenciesin yourangular.jsonand I will cut the other fixes in the next RC.