kossnocorp / typesaurus

🦕 Type-safe TypeScript-first ODM for Firestore
https://typesaurus.com
412 stars 34 forks source link

next.js client component: firebase-admin being loaded #125

Open TomKaltz opened 6 months ago

TomKaltz commented 6 months ago

When a client component is pre-rendered on the server Typesaurus will try to load firebase-admin and throw an error 'The default Firebase app does not exist'. How do we prevent this?

kossnocorp commented 6 months ago

Hey, @TomKaltz, thank you for reporting that, and sorry for the silence. I was on vacation. I will investigate and share a solution or publish an update that fixes it.

kevinpiac commented 4 weeks ago

Hey!

Any updates on this? If anyone has a good idea on how to fix it I could write a PR :)