You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flutter web build with --wasm fails due to use of 'package:js/js.dart' Issue in these files.
../../../../.pub-cache/hosted/pub.dev/clevertap_plugin-2.5.0/lib/src/clevertap_plugin_web_binding.dart:4:1: Error: JS interop library 'package:js/js.dart'
can't be imported when compiling to Wasm.
Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.
import 'package:js/js.dart';
^
../../../../.pub-cache/hosted/pub.dev/clevertap_plugin-2.5.0/lib/clevertap_plugin_web.dart:7: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' as js_util;
^
../../../../.pub-cache/hosted/pub.dev/clevertap_plugin-2.5.0/lib/clevertap_plugin_web.dart:8:1: Error: JS interop library 'package:js/js.dart' can't be
imported when compiling to Wasm.
Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.
import 'package:js/js.dart';
Steps to reproduce:
Make a Flutter web project.
Include Clevertap plugin in pubspec.yaml. - flutter pub add clevertap_plugin
Flutter web build with --wasm fails due to use of 'package:js/js.dart'
Issue in these files.
../../../../.pub-cache/hosted/pub.dev/clevertap_plugin-2.5.0/lib/src/clevertap_plugin_web_binding.dart:4:1: Error: JS interop library 'package:js/js.dart'
can't be imported when compiling to Wasm.
Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.
import 'package:js/js.dart';
^
../../../../.pub-cache/hosted/pub.dev/clevertap_plugin-2.5.0/lib/clevertap_plugin_web.dart:7: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' as js_util;
^
../../../../.pub-cache/hosted/pub.dev/clevertap_plugin-2.5.0/lib/clevertap_plugin_web.dart:8:1: Error: JS interop library 'package:js/js.dart' can't be
imported when compiling to Wasm.
Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.
import 'package:js/js.dart';
Steps to reproduce:
flutter pub add clevertap_plugin
Flutter build web --wasm
Ref: https://docs.flutter.dev/platform-integration/web/wasm#:~:text=own%20browser%20engine.-,Using%20compatible%20JS%20interop%20libraries,%23,-To%20support%20compilation
The text was updated successfully, but these errors were encountered: