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 #2099

Closed
zs-dima opened this issue Jun 13, 2024 · 2 comments
Closed

wasm #2099

zs-dima opened this issue Jun 13, 2024 · 2 comments

Comments

@zs-dima
Copy link

zs-dima commented Jun 13, 2024

flutter build web --wasm

Leads to the Error:
/home/flutter/.pub-cache/hosted/pub.dev/sentry_flutter-8.2.0/lib/src/native/cocoa/binding.dart:5:1: Error: 'dart:ffi' can't be imported when compiling to Wasm.
56.99 import 'dart:ffi' as ffi;

related issue: #2082

Platform

Flutter Web

Obfuscation

Enabled

Debug Info

Disabled

Doctor

[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631.3672], locale en-EN)
• Flutter version 3.22.2 on channel stable at c:\dev\flutter\stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (8 days ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at
• Platform android-34, build-tools 34.0.0
• Java binary at:
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.6)
• Visual Studio at
• Visual Studio Community 2022 version 17.9.34728.123
• Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2023.2)
• Android Studio at
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)

[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.3672]
• Chrome (web) • chrome • web-javascript • Google Chrome 125.0.6422.142
• Edge (web) • edge • web-javascript • Microsoft Edge 125.0.2535.92

[√] Network resources
• All expected network resources are available.

• No issues found!

Version

8.2.0

Steps to Reproduce

flutter build web --wasm

Expected Result

build well

Actual Result

Error /home/flutter/.pub-cache/hosted/pub.dev/sentry_flutter-8.2.0/lib/src/native/cocoa/binding.dart:5:1: Error: 'dart:ffi' can't be imported when compiling to Wasm.
56.99 import 'dart:ffi' as ffi;

Are you willing to submit a PR?

None

@buenaflor
Copy link
Contributor

hey, we'll check this out as soon as we can get the pr #2064 going

@buenaflor
Copy link
Contributor

closing this as a dupe of #2082

it's all going to be fixed by the same pr

@buenaflor buenaflor closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
@github-project-automation github-project-automation bot moved this from Needs Discussion to Done in Mobile & Cross Platform SDK Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants