You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am migrating my app from flutter 3.0.1 to 3.19.0 and all the packages within. While trying to migrate from moor to drift using dart run moor_generator migrate , I encountered the following error
Failed to build moor_generator:moor_generator:
../../../.pub-cache/hosted/pub.dev/moor_generator-4.6.0+1/bin/moor_generator.dart:1:1: Error: Library doesn't support null safety.
//@dart=2.9
The following are my versions in pubspec.yaml moor_flutter: ^4.0.0 moor_generator: ^4.6.0
Any idea how to solve this?
The text was updated successfully, but these errors were encountered:
Hm, you might have to migrate to drift on the older Flutter version and do the upgrade afterwards.
I haven't tried this, but what might also work is adding a dependency on drift_dev right away and then running dart run drift_dev migrate instead.
Really, the same error? With moor_generator appearing in the error message? Did you run dart run drift_dev migrate? Drift is fully migrated to null safety so this surprises me.
Hi, I am migrating my app from flutter 3.0.1 to 3.19.0 and all the packages within. While trying to migrate from moor to drift using
dart run moor_generator migrate
, I encountered the following errorThe following are my versions in pubspec.yaml
moor_flutter: ^4.0.0
moor_generator: ^4.6.0
Any idea how to solve this?
The text was updated successfully, but these errors were encountered: