Skip to content
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

Power Sync break the web build #163

Open
richard457 opened this issue Sep 13, 2024 · 2 comments
Open

Power Sync break the web build #163

richard457 opened this issue Sep 13, 2024 · 2 comments

Comments

@richard457
Copy link

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.

  • 'Object' is from 'dart:core'.
    final getSizeResult = callMethod<Object?>(openedFile, 'getSize', [***
    ^
    Error: Compilation failed.
    Command: C:\hostedtoolcache\windows\flutter\stable-3.24.0-x64\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\hostedtoolcache\windows\flutter\stable-3.24.0-x64\bin\cache\dart-sdk\bin\snapshots\dart2js.dart.snapshot --platform-binaries=C:\hostedtoolcache\windows\flutter\stable-3.24.0-x64\bin\cache\flutter_web_sdk\kernel --invoker=flutter_tool -Ddart.vm.product=true -DFLUTTER_WEB_AUTO_DETECT=false -DFLUTTER_WEB_USE_SKIA=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-
@richard457
Copy link
Author

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

@mugikhan
Copy link
Contributor

mugikhan commented Oct 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants