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 · 5 comments · May be fixed by #167
Open

WASM support #133

walidlahba opened this issue Feb 8, 2024 · 5 comments · May be fixed by #167

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

@vsochinsky
Copy link

vsochinsky commented Aug 16, 2024

WASM support is in stable for flutter web, and android users will benefit greatly right away. iOS/Safari has finished developing support for GC as well and will ship it soon to support flutter wasm.
Mixpanel should really release this update soon - it has been more than half a year since this issue was opened.

@pedromassango pedromassango linked a pull request Oct 4, 2024 that will close this issue
@pedromassango
Copy link

I just opened a PR that would fix this issue, see #167

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

Successfully merging a pull request may close this issue.

4 participants