r/reactnative•
Low-Fly5992

Cannot read property 'decode' of undefined" with Supabase, even with url-polyfill at the top of App.js

I'm trying to connect my Expo app to Supabase and I'm stuck on the common "Cannot read property 'decode' of undefined" error.

I've already searched for solutions and added `import 'react-native-url-polyfill/auto';` as the very first line in my `App.js` file, but the error persists. I have also tried restarting the Metro server and clearing the cache, but with no luck.

Here is the full error I'm seeing on my Android device:

https://preview.redd.it/1r7b4xdk5cuf1.png?width=1279&format=png&auto=webp&s=7b1046ceabef79b3e6145efae67458a020cb5124

https://preview.redd.it/ea8gjuql5cuf1.png?width=1334&format=png&auto=webp&s=1976209a16d2781c4c67c84ac45106e58cbd38b3

Posted Oct 10, 2025, 7:29 PM UTC

21
Loading comments…