Closed JehhB closed 5 months ago
The problem is actually expo router with output set to static as I think it is doing some pre-rendering of somesort. I fixed it by setting the output to single. It would be nice to be still output to static site, but I am closing this issue because I think it is more of an expo-router/metro problem.
Thanks @JehhB ! You've saved me a lot of time ! Have you opened an issue on the Expo repo?
What happened?
I am following the documentation on how to use supabase auth in react native expo app and did what the documentation say. But when I started expo using
It works fine on android tho.
npx expo start --web
it produces this error after bunding then expo would stop.Version
1.21.0
What platforms are you seeing this issue on?
System Information
Steps to Reproduce
My code is
export const supabase = createClient( process.env.EXPO_PUBLIC_SUPABASE_URL!, process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY!, { auth: { storage: AsyncStorage, autoRefreshToken: true, persistSession: true, detectSessionInUrl: false, }, }, );