You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ReferenceError: window is not defined
at getValue (C:\Users\HomePC\Desktop\pipuApp\node_modules@react-native-async-storage\async-storage\lib\commonjs\AsyncStorage.js:63:52)
at C:\Users\HomePC\Desktop\pipuApp\node_modules@react-native-async-storage\async-storage\lib\commonjs\AsyncStorage.js:39:21
at new Promise ()
at createPromise (C:\Users\HomePC\Desktop\pipuApp\node_modules@react-native-async-storage\async-storage\lib\commonjs\AsyncStorage.js:37:10)
at Object.getItem (C:\Users\HomePC\Desktop\pipuApp\node_modules@react-native-async-storage\async-storage\lib\commonjs\AsyncStorage.js:63:12)
at getItemAsync (C:\Users\HomePC\Desktop\pipuApp\node_modules@supabase\auth-js\dist\main\lib\helpers.js:134:33)
at SupabaseAuthClient.__loadSession (C:\Users\HomePC\Desktop\pipuApp\node_modules@supabase\auth-js\dist\main\GoTrueClient.js:815:66)
at SupabaseAuthClient._useSession (C:\Users\HomePC\Desktop\pipuApp\node_modules@supabase\auth-js\dist\main\GoTrueClient.js:796:39)
at SupabaseAuthClient._emitInitialSession (C:\Users\HomePC\Desktop\pipuApp\node_modules@supabase\auth-js\dist\main\GoTrueClient.js:1242:27)
at C:\Users\HomePC\Desktop\pipuApp\node_modules@supabase\auth-js\dist\main\GoTrueClient.js:1236:22
The text was updated successfully, but these errors were encountered:
I have been facing the same issue lately.
If I console log all the .envs in the Expo app, I can read them without any issues, but the moment I try to initialise a Supabase client, I get the error saying that the Supabase URL is required.
When I develop locally using the Expo build, it works well, but when I try to build the app using Xcode or EAS, the app crashes.
I am not sure whether this is an Expo issue or a Supabase issue. I have created a project multiple times and still face this issue after some time in the project.
It throws this error anytime I run it:
C:\Users\HomePC\Desktop\pipuApp\node_modules@expo\cli\build\src\utils\errors.js:123
throw error;
^
ReferenceError: window is not defined
at getValue (C:\Users\HomePC\Desktop\pipuApp\node_modules@react-native-async-storage\async-storage\lib\commonjs\AsyncStorage.js:63:52)
at C:\Users\HomePC\Desktop\pipuApp\node_modules@react-native-async-storage\async-storage\lib\commonjs\AsyncStorage.js:39:21
at new Promise ()
at createPromise (C:\Users\HomePC\Desktop\pipuApp\node_modules@react-native-async-storage\async-storage\lib\commonjs\AsyncStorage.js:37:10)
at Object.getItem (C:\Users\HomePC\Desktop\pipuApp\node_modules@react-native-async-storage\async-storage\lib\commonjs\AsyncStorage.js:63:12)
at getItemAsync (C:\Users\HomePC\Desktop\pipuApp\node_modules@supabase\auth-js\dist\main\lib\helpers.js:134:33)
at SupabaseAuthClient.__loadSession (C:\Users\HomePC\Desktop\pipuApp\node_modules@supabase\auth-js\dist\main\GoTrueClient.js:815:66)
at SupabaseAuthClient._useSession (C:\Users\HomePC\Desktop\pipuApp\node_modules@supabase\auth-js\dist\main\GoTrueClient.js:796:39)
at SupabaseAuthClient._emitInitialSession (C:\Users\HomePC\Desktop\pipuApp\node_modules@supabase\auth-js\dist\main\GoTrueClient.js:1242:27)
at C:\Users\HomePC\Desktop\pipuApp\node_modules@supabase\auth-js\dist\main\GoTrueClient.js:1236:22
The text was updated successfully, but these errors were encountered: