-
Notifications
You must be signed in to change notification settings - Fork 364
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
Web WASM: "RuntimeError: illegal cast at DriftCommunication._handleMessage" #3113
Comments
@SleepySquash After modification that you mentioned. I getting another error
|
@OlegShNayax, yep, that's what I'm stuck at with too. Seems like the |
This is pretty hard to test at the moment because there is no good way to write integration tests for dart2wasm outside of Flutter yet. Nothing in drift is aware of dart2wasm at all, and we're not running any tests compiled to wasm. As a short-term solution I'll look into running unit tests with dart2wasm as well, but that doesn't say too much because most of the subtle bugs are usually around the |
The problems are fixed on I've added CI steps running unit tests for |
How to use develop branch? I can't start my app using wasm with current pub version |
There are some notes on that here |
Steps to reproduce
flutter build web --wasm --no-strip-wasm
dhttpd '--headers=Cross-Origin-Embedder-Policy=credentialless;Cross-Origin-Opener-Policy=same-origin' --path=build/web --port=8085
Developer Tools > Console
Expected results
We see log "initialize drift database" end everything works fine.
Actual results
We see log "initialize drift database" and error:
Code sample
Code sample
main.dart
drift_database.dart
drift_actor_entity.dart
DriftActorTable
DriftActorDao
Flutter Doctor output
Flutter Doctor output
drift_worker.js
The text was updated successfully, but these errors were encountered: