Relative Content

Tag Archive for react-nativeexposupabaseexpo-go

Supabase Expo React Native App from Tutorial throws Error on Web: _index.default is undefined

I followed this Expo tutorial from the supabase docs. I intend to use it to build a react native app and compile for android, iOS and web. The app version works perfectly on Expo Go, but when I tried to run the web version it gave the following error in the console: Uncaught TypeError: Cannot destructure property 'PostgrestClient' of '_index.default' as it is undefined.
I strictly followed the tutorial when creating the app. The only changes I made was installing the dependencies for react native for web and updating the typescript version.