Skip to content
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

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

Open
TomKaltz opened this issue Feb 16, 2024 · 3 comments
Open

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

TomKaltz opened this issue Feb 16, 2024 · 3 comments
Labels
Bug Something isn't working Next.js

Comments

@TomKaltz
Copy link

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
Copy link
Owner

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.

@kossnocorp kossnocorp added Bug Something isn't working Next.js labels May 13, 2024
@kevinpiac
Copy link

Hey!

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

@otajor
Copy link

otajor commented Oct 25, 2024

We're also running into this issue when trying to run jest tests on our frontend firebase code with typesaurus. Typesaurus seems to think it is on the server and I don't know how to get it to use the web adaptor. Jest's testEnvironment is jsdom so it should act mostly like a DOM environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Next.js
Projects
None yet
Development

No branches or pull requests

4 participants