Migrate Matrix Dart SDK to package:web - Compatibility Issue with WebAssembly (WASM) #1991
Open
1 of 2 tasks
Labels
bug
Something isn't working
Checklist
In which Project did the bug appear?
No response
If you selected "Other" as Project, please enter in which project the bug occurred.
No response
On which platform did the bug appear?
Chrome
SDK Version
matrix: ^0.36.0
Describe the problem caused by this bug
When building a Flutter web application with the --wasm flag, I encountered a compatibility issue involving the matrix-dart-sdk. The error occurs during the build process and appears to stem from the SDK relying on the dart:html package, which is incompatible with WASM builds.
This indicates that the matrix-dart-sdk has a hard dependency on dart:html, which prevents successful compilation when targeting WebAssembly.
Supporting WASM in the matrix-dart-sdk would unlock significant potential for Flutter web applications targeting modern web standards and optimized performance.
Steps To Reproduce
1.Create a Flutter web project with a dependency on matrix-dart-sdk.
2.Run the following command:
flutter build web --wasm
Screenshots or Logs
No response
Security related
No response
The text was updated successfully, but these errors were encountered: