Skip to content

Pre-rendering error after update (6.0.5 → 6.1.1) #2671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mazlano27 opened this issue Nov 19, 2020 · 2 comments
Closed

Pre-rendering error after update (6.0.5 → 6.1.1) #2671

mazlano27 opened this issue Nov 19, 2020 · 2 comments

Comments

@mazlano27
Copy link

mazlano27 commented Nov 19, 2020

Version info

Angular:11.0.1

Firebase:8.0.2

AngularFire:6.1.1

How to reproduce these conditions

After updating to v6.1.1 → angular pre-rendering yields the following error:

TypeError: app.firestore is not a function

I've tried to delete node_modules and package-lock.json and re-install packages but the error persist. Rolling back to v6.0.5 fixes the issue

Expected behavior

Should be able to pre-render routes successfully

Actual behavior

Unable to pre-render routes successfully

@mazlano27
Copy link
Author

Update:

When updating from Angular 9 → 10, I had added "@firebase/firestore" as an external dependency in angular.json to allow for pre-rendering.

After updating to @angular/fire 6.1.1 and removing the external dependency from angular.json, the pre-rendering seems to be working once more.

@jamesdaniels
Copy link
Member

Closing in favor of pinned #2686

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants