remove dart:html to be compatible with wasm
main.dart => package:vhp => package:oidc_default_store => package:universal_html => dart:html web_plugin_registrant.dart => package:flutter_secure_storage_web => dart:html
When it will be happen as stable version, ready for production?
Steps To Reproduce
flutter build web --release --wasm
Expected Behavior
zero error
Screenshots
Compiling lib\main.dart for the Web... 24.6s Error: Failed to compile application for the Web.
I have been able to get flutter_secure_storage 9.2.4 to build & run on wasm by overriding two of the internal packages which already have new live versions that support wasm.
dependency_overrides:
flutter_secure_storage_web: ^2.0.0
flutter_secure_storage_platform_interface: ^2.0.1
Note: I have not fully tested this but seemed to work ok.
Alternatively, you could switch to the 10 branch, which is still in beta, but we've been using it for months without any issue.
dependencies:
flutter_secure_storage: ^10.0.0-beta.4
Publishing v10 would be AMAZING! 😁
I have released v10 which fixes this!
Thank you!