powersync-ja / powersync.dart

SDK that enables local-first and real-time reactive apps with embedded SQLite for Flutter/Dart clients
https://www.powersync.com
133 stars 18 forks source link

Power Sync break the web build #163

Open richard457 opened 2 months ago

richard457 commented 2 months ago

Compiling lib\main.dart for the Web...
Target dart2js failed: ProcessException: Process exited abnormally with exit code 1: /C:/Users/runneradmin/AppData/Local/Pub/Cache/hosted/pub.dev/drift-2.14.1/lib/src/web/wasm_setup/shared.dart:40:47: Error: The argument type 'LegacySyncFileHandle' can't be assigned to the parameter type 'Object' because 'LegacySyncFileHandle' is nullable and 'Object' isn't.

richard457 commented 2 months ago

The power sync break other builds as well, windows, macos

mugikhan commented 1 month ago

Hey @richard457 what version of Flutter (output of flutter doctor -v) and PowerSync are you using? Could you also double check what version of drift you are using, from the error message it looks like it is v2.14.1 but our SDK supports v2.18.0. If you want to use drift, this example would be a good starting point https://github.com/powersync-ja/powersync.dart/tree/main/demos/supabase-todolist-drift