-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Unable to compile to WASM with sentry_flutter due to incompatibilities with device_info_plus. #2399
Comments
Can you provide a minimal reproducible example? WASM compilation should work since #2113 |
The reproducible steps for the device_info_plus issue can be found here fluttercommunity/plus_plugins#325 The problem arises because Sentry is using an outdated version of device_info_plus that is affected by this issue. The compilation itself is not the issue—apologies if the title was misleading. The problem arises when attempting to start the web app after it has been compiled to wasm. |
I guess you meant 3254, not 325. Either way, that's not a reproducible example.
Even more reason we need a reproduction, e.g. a minimal app repository, that shows the issue, with clear indication what the issue is (if it's not compilation). It's just guesswork otherwise.
Sentry Flutter SDK doesn't depend on device_info_plus AFAICT: `flutter pub deps`
|
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Platform
Flutter Web
Obfuscation
Enabled
Debug Info
Enabled
Doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 3.27.0-0.1.pre, on macOS 14.6.1 23G93 darwin-arm64, locale en-ES)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.95.2)
[✓] VS Code (version 1.86.1)
Version
8.9.0
Steps to Reproduce
Related issue can be found here fluttercommunity/plus_plugins#3254
flutter build web --wasm -t lib/main.dart
Expected Result
To compile to WASM, ensure you’re using the latest version of device_info_plus.
Actual Result
In my app, I’ve discovered that when I exclude the following Sentry initialization code, the application successfully compiles to WebAssembly (WASM). However, including this code results in compilation issues, indicating a possible incompatibility with WASM.
Are you willing to submit a PR?
None
The text was updated successfully, but these errors were encountered: