Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

WASM support #133

Open
walidlahba opened this issue Feb 8, 2024 · 3 comments
Open

WASM support #133

walidlahba opened this issue Feb 8, 2024 · 3 comments

Comments

@walidlahba
Copy link

Hey,

The current version of plugin is not compatible with WASM compilation

../../.pub-cache/hosted/pub.dev/mixpanel_flutter-2.2.0/lib/mixpanel_flutter_web.dart:6: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;

Thank you

@The-RootCause
Copy link

Any updates on the this improvement ?

@The-RootCause
Copy link

The-RootCause commented Mar 10, 2024

@zihejia @jaredmixpanel Any plans to incorportate this instead of the update to js 0.7. Thank you ? This migration to js_interop is needed to make the app wasm compatible, which we rely on. right now we are using the api to send track to MP, but it's far from what the plugin is providing as coverage.
Thank you

@The-RootCause
Copy link

@zihejia @jaredmixpanel Any updates or plans on this matter ?
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants