Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Migrate Matrix Dart SDK to package:web - Compatibility Issue with WebAssembly (WASM) #1991

Open
1 of 2 tasks
tusharbhambere opened this issue Jan 1, 2025 · 0 comments
Open
1 of 2 tasks
Labels
bug Something isn't working

Comments

@tusharbhambere
Copy link

Checklist

  • I could not find a solution in the documentation, the existing issues or discussions.
  • I already asked for help in the chat

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.

main.dart => package:qviple_user_desktop => package:matrix => dart:html  

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

@tusharbhambere tusharbhambere added the bug Something isn't working label Jan 1, 2025
@krille-chan krille-chan changed the title Compatibility Issue with WebAssembly (WASM) Migrate Matrix Dart SDK to package:web - Compatibility Issue with WebAssembly (WASM) Jan 13, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant