-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support for react-native-web #249
Comments
If i use @powersync/web, i get the error: which comes from here:
|
Additional info, issue raised on expo: |
here's a git repo reproducing the error: https://github.com/fig-wealth/powersync-react-native-web
|
Metro does not support esm, probably wont until at least next year: any chance of making a commonjs transpile of powersync or changing the import.meta.url instances? |
Thanks for the detailed issue and example repository! We'll use your example to investigate the requirements - I'll keep you posted when we have an update. |
I was missing a commit, i've since added it to the repo. apologies |
To give you all an update, and potentially reduce the problem set, I've created another branch that conditionally incorporates https://github.com/fig-wealth/powersync-react-native-web/tree/with-react-native As far as I can tell, it works on iOS (at least saying the auth is wrong... [I have the self hosted demo running]) |
We've done an initial investigation where we identified some hurdles and potential solutions for providing React Native web support. We have managed to get an example POC running using a UMD bundled version of the Web SDK. Support may be available in the near future. |
That's great news. I can't wait 👍 |
The dev build has been working great so far. Thanks for all the hard work! |
Ok we're in business. i have a git action:
Moving the files into the |
hi @jasonlewicki , |
@ducpt-bili Hey, yeah, until the team merges into main, there's a list of things you need to do to get it working: install these:
Then, add this script:
and run it. then modify your metro config to add this:
the git action above is for production runs, where you copy/move the dev files into the proper dist directory |
hi @jasonlewicki , thank you for your hard work. |
I'm having trouble getting powersync installed and working with an expo universal app (react-native and react-native-web)
Error running powersync/react-native on web:
text version of the link:
https://github.com/expo/fyi/blob/main/fb-batched-bridge-config-web.md
The text was updated successfully, but these errors were encountered: