Open jdgamble555 opened 23 hours ago
Windows 11
Vercel Edge with Qwik
10.13.1-canary.16d62d4fa (or lower)
Auth
Qwik (1.8.0)
When I use getAuth() on the server inside a Qwik app, I get the Service Auth is not available error. The local testing environment has no problems and works as expected.
getAuth()
Service Auth is not available
It is literally something that gets errored out in Qwik with getAuth().
Possibly related to #8355
While I'm not sure why the error is thrown, it is coming from here: https://github.com/firebase/firebase-js-sdk/blob/629919ea760e35b7d880a099edf7f42b5bcbae4b/packages/component/src/provider.ts#L130
J
I made a Repo:
Add your Firebase environment variables to .env and to Vercel Edge environment variables.
.env
PUBLIC_FIREBASE_CONFIG={"apiKey":....,"authDomain"...}
Deploy to Vercel Edge.
Sign in with Google.
Click the about link in navigation.
about
See error thrown.
See Deployed Demo with error.
If have isolated the error to getAuth(). This app doesn't use initializeApp or initializeServerApp, but the error is the same in either case.
initializeApp
initializeServerApp
Here is failing code.
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Operating System
Windows 11
Environment (if applicable)
Vercel Edge with Qwik
Firebase SDK Version
10.13.1-canary.16d62d4fa (or lower)
Firebase SDK Product(s)
Auth
Project Tooling
Qwik (1.8.0)
Detailed Problem Description
When I use
getAuth()
on the server inside a Qwik app, I get theService Auth is not available
error. The local testing environment has no problems and works as expected.It is literally something that gets errored out in Qwik with
getAuth()
.Possibly related to #8355
While I'm not sure why the error is thrown, it is coming from here: https://github.com/firebase/firebase-js-sdk/blob/629919ea760e35b7d880a099edf7f42b5bcbae4b/packages/component/src/provider.ts#L130
J
Steps and code to reproduce issue
I made a Repo:
Add your Firebase environment variables to
.env
and to Vercel Edge environment variables.Deploy to Vercel Edge.
Sign in with Google.
Click the
about
link in navigation.See error thrown.
See Deployed Demo with error.
If have isolated the error to
getAuth()
. This app doesn't useinitializeApp
orinitializeServerApp
, but the error is the same in either case.Here is failing code.
J