Jason Lewicki
Jason Lewicki
This is pretty important. Currently spending the better part of a day trying to diagnose why set() is blackholing ( i assume initializeApp() is failing somehow)
Turns out `FIREBASE_DATABASE_EMULATOR_HOST` being set even though specifying a specific `databaseURL` for `initializeApp` ended up being the cause of my problem.
``` $ flutter doctor -v [✓] Flutter (Channel dev, 1.22.0-9.0.pre, on Mac OS X 10.15.6 19G2021, locale en-US) • Flutter version 1.22.0-9.0.pre at XXX • Framework revision 7a43175198 (6 days...
https://github.com/dart-lang/sdk/issues/41904
@sgehrman in the meantime you can use my PR if you'd like: https://github.com/jasonlewicki/flutter_stetho pubspec.yaml ``` flutter_stetho: git: url: git://github.com/jasonlewicki/flutter_stetho.git ref: master ``` there's only one method added: https://github.com/brianegan/flutter_stetho/pull/40/files
If i use @powersync/web, i get the error: ```Uncaught SyntaxError: Cannot use 'import.meta' outside a module (at index.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=src%2Fapp:258371:114)``` which comes from here: ``` class SharedWebStreamingSyncImplementation extends _WebStreamingSyncImplementation.WebStreamingSyncImplementation { constructor(options) {...
Additional info, issue raised on expo: https://github.com/expo/expo/issues/21099 https://github.com/expo/expo/issues/30323
here's a git repo reproducing the error: https://github.com/fig-wealth/powersync-react-native-web `npx expo install` `npx expo start` `w` to launch web
Metro does not support esm, probably wont until at least next year: https://github.com/facebook/metro/issues/916 https://github.com/facebook/metro/issues/886 any chance of making a commonjs transpile of powersync or changing the import.meta.url instances?
I was missing a commit, i've since added it to the repo. apologies