-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Bug]:[share_plus] Unable to build for web #2812
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
Comments
I cannot reproduce the issue, the project compiles for me.
|
I got this problem just as I upgraded my plugins... It doesn't fix the problem, but it moved me onwards to build with share_plus: ^7.2.1 instead if that helps at all. I submitted the error to the compiler team as my error crashes the web compiler and they asked that I submit the report as a crash isn't what they wanted (O: |
From the Dart team: There was an issue with the Dart stable 3.3.0 SDK, which was then fixed in a patch release with Dart 3.3.1. The issue was that object-literal JS-interop constructors (such SharedData.files here) didn't work in dart2js unless the enclosing library had a @js() annotation. Instead of reporting an error, the compiler crashed! I believe it was because this used to be required in the old interop, but we decided it shouldn't be required anymore, but then one part of the compiled wasn't adjusted to properly understand code without the annotation. More details available in the issue describing the 3.3.1 cherry-pick: Since this is now released in the stable channel, most likely the only thing you need to do is to update to the latest stable release of Dart and Flutter. |
Thanks for the help @butterbrain ! I can see that @imhafeez uses Please @imhafeez confirm if that's the case and close the issue. |
Thanks @butterbrain @miquelbeltran. It compiled successfully after I am closing now. |
Thanks, 3.3.1 also builds now |
Platform
web
Plugin
share_plus
Version
8.0.2
Flutter SDK
3.19.0
Steps to reproduce
flutter web build
Code Sample
No response
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: