0Day Forums
Cannot run with sound null safety because dependencies don't support null safety - Printable Version

+- 0Day Forums (https://0day.red)
+-- Forum: Coding (https://0day.red/Forum-Coding)
+--- Forum: Flutter & Dart (https://0day.red/Forum-Flutter-Dart)
+--- Thread: Cannot run with sound null safety because dependencies don't support null safety (/Thread-Cannot-run-with-sound-null-safety-because-dependencies-don-39-t-support-null-safety)



Cannot run with sound null safety because dependencies don't support null safety - monitive245454 - 07-21-2023

I have followed ["Enabling null safety" on `dart.dev`][1] and also [**migrated**][2] my whole Flutter application to null safety.

Now, I am trying to run it using `flutter run`. However, it will not start because of the following error:

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

- package:cloud_firestore_web
- package:firebase_core_web
- package:shared_preferences
- package:url_launcher_web
- package:firebase_auth
- package:http
- package:provider
...

For solutions, see

[To see links please register here]

Failed to compile application.
```

The guide at the URL says that I should ["wait for dependencies to migrate before you migrate your package"][3], but I want to use [non-nullable by default][4] (NNBD) now.

How can I do that?

[1]:

[To see links please register here]

[2]:

[To see links please register here]

[3]:

[To see links please register here]

[4]:

[To see links please register here]