Reputation: 1592
I am following the documentation to get started with AngularFire and Angular Universal. However after I run npm install --save-dev @nguniversal/express-engine @nguniversal/module-map-ngfactory-loader express webpack-cli ts-loader ws xhr2
I get the following error:
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^8.2.0" from @nguniversal/[email protected] npm ERR! node_modules/@nguniversal/module-map-ngfactory-loader npm ERR! dev @nguniversal/module-map-ngfactory-loader@"*" from the root project
What am I doing wrong? Or is this a bug? Any workarounds?
Upvotes: 0
Views: 5415
Reputation: 1592
As of now, the documentation for angular fire is not up to date. Furthermore, the versions are very picky. I had success following this tutorial.
You can follow the same steps but with angular 11. Also, just don't even try deploying as a cloud function.
Upvotes: 1