-
Notifications
You must be signed in to change notification settings - Fork 514
Description
Supabase not working with expo sdk 53 ?
I updated from latest expo sdk 52.0.46 to new expo sdk 53.0.1 , i am also using node 23.11.0 , and i am using eas build . System windows 11.0.0
Everything worked perfectly on expo sdk 52.0.46 with custom dev client and now getting this error
============ error ==========
Android Bundling failed 23470ms index.js (2841 modules)
The package at "node_modules\ws\lib\stream.js" attempted to import the Node standard library module "stream".
It failed because the native React runtime does not include the Node standard library.
Learn more: https://docs.expo.dev/workflow/using-libraries/#using-third-party-libraries
below is my package json with the scripts :
{
"private": true,
"name":NoMoneyNoHoney",
"version": "1.0.0",
"scripts": {
"eas-android-development-client-apk": "eas build -p android --profile development",
"eas-android-development-client-apk-local": "eas build --profile development --platform android --local",
"android": "expo run:android",
"ios": "expo run:ios",
"publish": "expo publish",
"expo-doctor": "npx expo-doctor@latest",
"-": "-",
"deploy": "eas build --platform android",
"check-updates": "npx npm-check-updates",
"upgrade-dependencies": "npx expo install --fix",
"--": "--",
"eas-android-production-apk": "eas build -p android --profile production-apk",
"eas-android-local-prod-apk": "eas build --profile production-apk --platform android --local",
"---": "---",
"npx_prebuild": "npx expo prebuild --clean",
"start": "npx expo start --dev-client",
"clearCache": "npx expo start -c"
},
"dependencies": {
"@expo/metro-config": "~0.20.0",
"@expo/metro-runtime": "~5.0.4",
"@expo/prebuild-config": "~9.0.0",
"@expo/vector-icons": "^14.1.0",
"@notifee/react-native": "9.1.8",
"@react-native-async-storage/async-storage": "2.1.2",
"@react-native-community/netinfo": "11.4.1",
"@sentry/react-native": "~6.10.0",
"@shopify/react-native-skia": "v2.0.0-next.2",
"@supabase/supabase-js": "2.49.4",
"@types/react": "~19.0.10",
"axios": "1.9.0",
"expo": "~53.0.1",
"expo-application": "~6.1.3",
"expo-asset": "~11.1.3",
"expo-auth-session": "~6.1.4",
"expo-av": "~15.1.3",
"expo-build-properties": "~0.14.5",
"expo-clipboard": "~7.1.3",
"expo-constants": "~17.1.3",
"expo-crypto": "~14.1.3",
"expo-dev-client": "~5.1.5",
"expo-device": "~7.1.3",
"expo-document-picker": "~13.1.4",
"expo-file-system": "~18.1.7",
"expo-image-picker": "~16.1.3",
"expo-linear-gradient": "~14.1.3",
"expo-linking": "~7.1.3",
"expo-sharing": "~13.1.4",
"expo-splash-screen": "~0.30.6",
"expo-system-ui": "~5.0.5",
"expo-web-browser": "~14.1.5",
"firebase": "11.6.1",
"lottie-react-native": "7.2.2",
"qs": "6.14.0",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-native": "0.79.1",
"react-native-animatable": "1.4.0",
"react-native-crypto-js": "^1.0.0",
"react-native-gesture-handler": "~2.24.0",
"react-native-google-mobile-ads": "14.11.0",
"react-native-reanimated": "~3.17.4",
"react-native-redash": "^18.1.3",
"react-native-safe-area-context": "5.3.0",
"react-native-screens": "~4.10.0",
"react-native-svg": "15.11.2",
"react-native-url-polyfill": "^2.0.0",
"react-native-view-shot": "~4.0.3",
"react-native-web": "^0.20.0",
"react-native-webview": "13.13.5",
"typescript": "~5.8.3",
"zustand": "^5.0.3"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"babel-plugin-module-resolver": "^5.0.2",
"prettier": "^3.5.3"
},
"expo": {
"doctor": {
"reactNativeDirectoryCheck": {
"listUnknownPackages": false
}
}
}
}
So i have builded succesfully a dev-client-apk and i pressed start project and i am getting this weird error and i searched everywhere and i don't know if it's supabase or expo having this issue right now :
It happens just when the app is building and ready to start ..
============ error ==========
Android Bundling failed 23470ms index.js (2841 modules)
The package at "node_modules\ws\lib\stream.js" attempted to import the Node standard library module "stream".
It failed because the native React runtime does not include the Node standard library.
Learn more: https://docs.expo.dev/workflow/using-libraries/#using-third-party-libraries
============================
I did the below to check who is the guilty and maybe it's supabase ?
npm ls ws
+-- @supabase/[email protected]
| `-- @supabase/[email protected]
| `-- [email protected]
+-- [email protected]
| `-- @expo/[email protected]
| +-- @react-native/[email protected]
| | `-- [email protected]
| `-- [email protected] deduped
`-- [email protected]
+-- @react-native/[email protected]
| `-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
`-- [email protected]
I searched for a workaround and tried with polyfill but nothing works .... :

