Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

null-safety error on commands #957

Open
EhsanAramide opened this issue Mar 12, 2021 · 3 comments
Open

null-safety error on commands #957

EhsanAramide opened this issue Mar 12, 2021 · 3 comments

Comments

@EhsanAramide
Copy link

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?

@clebsonluiz
Copy link

clebsonluiz commented Mar 13, 2021

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) .

@EhsanAramide
Copy link
Author

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?

@clebsonluiz
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants