aqueduct
aqueduct copied to clipboard
null-safety error on commands
I have dart 2.12.0 which is stable and support sound and unsound null safety.
When I run aqueduct serve
I get an error which it says the script don't use null-safety because of this I get error and I can't do anything like migration and other commands did team have any solution for this kind of errors?
I have the same issue too, i can't resolve it :), btw, maybe these links can help you to get some idea, Another newb with null sound problems and Support for nullsafety.
Note *: If you don't care much about the dart sdk version, perhaps downgrading to an older version like 2.9 may allow you to continue using Aqueduct without any problems, so far this is what apparently worked for me (hehe) .
yes I did it downgrade dart sdk to 2.10 but I saw another problem in migrating that it says the value isn't in range 0...11411 do experiment it too?
Yep, i "fix" that looking at this, and mainly this. But, what I "understood" is that apparently the problem in general is the version of the dart sdk in relation to Aqueduct and some dependences, if the Dart SDK > 2.7 some problems occur, mainly with the CLI. So, maybe if you are going to study and learn Aqueduct, using an older version of dart is the only solution so far, or waiting for an update in the future. So, sorry for not really helping because I'm also in the same boat uaheau.