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
When using @supabase/supabase-js in an expo react native project, if I use the unstable_enablePackageExports with the metro bundler, bundling fails with the following error:
To Reproduce
Generate a new expo app
Add @supabase/supabase-js as a dependency
Create a supabase client in the main _layout.tsx file
Run npx expo customize metro.config.js
Add config.resolver.unstable_enablePackageExports = true; to metro.config.js
Opening here because the error message I got in my actual project was
The package at "../../node_modules/@supabase/realtime-js/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.
The text was updated successfully, but these errors were encountered:
Cross-posting supabase/realtime-js#415 because I'm not sure you're monitoring the issues on the other repo :)
Bug report
Describe the bug
When using
@supabase/supabase-js
in an expo react native project, if I use theunstable_enablePackageExports
with the metro bundler, bundling fails with the following error:To Reproduce
@supabase/supabase-js
as a dependency_layout.tsx
filenpx expo customize metro.config.js
config.resolver.unstable_enablePackageExports = true;
tometro.config.js
ios.bundleIdentifier
toapp.json
npx expo run:ios
Repro repo: https://github.com/aldebout/supabase-expo-exports-issue
Expected behavior
No crash
Screenshots
System information
Additional information
Opening here because the error message I got in my actual project was
The text was updated successfully, but these errors were encountered: