A project cannot be compiled using flutter build web --wasm since the transitive dependency sign_in_with_apple_web doesn't support the new js interop bindings. This is caused by an outdated dependency version of sign_in_with_apple and is fixed with the latest version.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Upgrade to Flutter 3.22.0
Install supabase_auth_ui dependency
Build with flutter build web --wasm
Example error message:
[...]/Cache/hosted/pub.dev/sign_in_with_apple_web-1.0.1/lib/sign_in_with_apple_web.dart:8:1:
Error: JS interop library 'package:js/js_util.dart' can't be imported when compiling to Wasm.
Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.
import 'package:js/js_util.dart';
Expected behavior
Compilation should be possible with upgraded dependencies. Unfortunatly, I cannot test this.
Bug report
Describe the bug
A project cannot be compiled using
flutter build web --wasm
since the transitive dependencysign_in_with_apple_web
doesn't support the new js interop bindings. This is caused by an outdated dependency version ofsign_in_with_apple
and is fixed with the latest version.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
supabase_auth_ui
dependencyflutter build web --wasm
Example error message:
Expected behavior
Compilation should be possible with upgraded dependencies. Unfortunatly, I cannot test this.