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

dart2native doesn't support --no-sound-null-safety #44553

Closed
Timmmm opened this issue Dec 26, 2020 · 1 comment
Closed

dart2native doesn't support --no-sound-null-safety #44553

Timmmm opened this issue Dec 26, 2020 · 1 comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. vm-native

Comments

@Timmmm
Copy link

Timmmm commented Dec 26, 2020

Using dart2native 2.12.0-133.2.beta on "mixed" null safe code I get the following error:

Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:

 - package:async
 - package:stream_transform
 - package:path
 - package:crypto
 - package:collection
 - package:convert
 - package:typed_data
 - package:charcode

For solutions, see https://dart.dev/go/unsound-null-safety

That page mentions --no-sound-null-safety which sounds like exactly what I want, however it isn't a valid parameter to dart2native. So there's no way to compile my code with dart2native.

@srawlins srawlins added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. vm-native labels Dec 28, 2020
@lslv1243
Copy link

lslv1243 commented Jan 3, 2021

The same problem is happening to me while trying to use dart compile exe, when I try to use the flag --no-sound-null-safety it does not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. vm-native
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants