Replies: 2 comments
-
This is probably because you're not intializing firebase during SSR. You're checking for |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am circumventing such issues with dynamic imports. I just provided an answer in another discussion that shows how to do that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am trying to implemt firebae auth in a gatsby project but I am facing a couple of issues.
Steps to reproduce
https://codesandbox.io/s/pgdyz
Expected result
The project should build without any errors.
Actual result
If the lines regarding
onCreateWebpackConfig
ingatsby-node.js
is outcommented do I get afetch is not defined
error which is related to the firebase package. I can "fix" that with the lines igatsby-node.js
however I can't make any references tofirebase.auth
and it will result in the following error:Environment
Run
gatsby info --clipboard
in your project directory and paste the output here.Beta Was this translation helpful? Give feedback.
All reactions