-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use with unstable_enablePackageExports metro option (expo) #415
Comments
Is there any update on this? I've run into the same issue |
now that we have native ws support I do think that we can remove #426 here's a branch for us to use for testing to see if we can fix it by removing ws from realtime-js dependencies. but after removing it I keep getting the same issue and the only dependency that uses it's |
@filipecabaco I'm not sure what the next step is, how can I help you? |
@aldebout maybe. it seems that the main issue was the fact that we had the could you try to checkout the repo, checkout the branch |
I tried using the branch but I'm having issues because |
I need to try it again but if I'm not mistaken I did use overrides... maybe I should just make an example with just realtime-js and expo to make it easier to test out without overrides and just importing the "fix branch" |
Any update? Currently running into this issue as well |
sorry not yet as we were tackling other issues on the server side. I also need to do another fix in realtime-js and then I will pick this one up again as mentioned above I'm going to create a new repo with realtime-js so we can test this in a more consistent way to find a fix 👀 |
OK, no problem. I can confirm that by using patch package to imitate your pr like so it solved the issue for me |
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: