-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Dio 5.5 broke compilation for WASM #2266
Comments
@vaind Can you please try to run against https://github.com/kuhnroyal/dio/tree/fix/wasm-compile |
While your tests previously compiled for some reason, the dio package does not yet support WASM. So I don't fully grasp how the tests were successful. |
The test seem to run now. |
v5.4 worked just fine with WASM (verified in an actual web app locally). I assume it depends on what code ends up being tree-shaken or not. |
Interesting, I have not looked very much into WASM yet. |
@vaind Hopefully you'll get all passed tests after upgrading dio to v5.5.0+1. |
Package
dio
Version
5.5.0
Operating-System
Web
Adapter
Default Dio
Output of
flutter doctor -v
Dart Version
No response
Steps to Reproduce
flutter create dio_web
cd dio_web
flutter pub add dio:5.4.3+1
dio
code tolib/main.dart
, e.g.flutter build web --wasm
succeeds nowflutter pub add dio:5.5.0
flutter build web --wasm
fails nowExpected Result
Minor version bumps don't break existing users.
Actual Result
Latest release broke users who already use wasm (or test against it, e.g. getsentry/sentry-dart)
The text was updated successfully, but these errors were encountered: