infinitered / ignite-cookbook

Ignite Cookbook for React Native
https://ignitecookbook.com
MIT License
93 stars 15 forks source link

PowerSync and Supabase Recipe doesn't support web build #169

Open titeinsite opened 4 months ago

titeinsite commented 4 months ago

Describe the bug

Following the cookbook recipe, and installing the PowerSync dependency, the web build of the app displays a blank screen and has an error, yet the Android version of the app will display the Ignite welcome screen fine.

steps to reproduce: npx ignite-cli@latest new PowerSyncIgnite --remove-demo --workflow=cng --yes npx expo install @powersync/react-native

then: npx expo prebuild npx expo start

Opening the web view is blank, and the browser Console log is: Uncaught Error: The web project is importing a module from 'react-native' rather than 'react-native-web'.

ref: https://ignitecookbook.com/docs/recipes/LocalFirstDataWithPowerSync

ecroce commented 1 week ago

Hi @titeinsite, I've taken a look at this bug, but was unable to reproduce with the steps provided. Are you still seeing this issue? I'll keep an eye out for a couple days and then close, but feel free to reopen if you're still hitting a snag here.