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
{{ message }}
This repository was archived by the owner on Mar 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 18, 2021. It is now read-only.
Problems with aqueduct commands after flutter upgrade #945
To launch aqueduct server I have been using dart bin/main.dart command to run my specifications defined on main.dart file and it works. But I can't find any way of generate a new database without aqueduct db generate command.
I had same problem and I found the solution at is on #946
First I create a path (/user/****/.pub-cache/bin) for flutter dart.
So every time I update stable version my path always see the dart path.
Than I use “dart pub global activate aqueduct” to get aqueduct.
Now its working perfectly.
@SzAttila97 try to run flutter clean before aqueduct db generate and make sure that your flutter version in pubspec.yaml file is the same version than your flutter channel
@cmalbuquerque
Alright, thanks anyway.
By the way the method you mentioned at the beggining of the post (changing the channels) still working for you?
Or maybe there was some changes connected with the channels?
Activity
91priyansh commentedon Feb 4, 2021
@cmalbuquerque same here. I am also not able to run aqueduct db generate
cmalbuquerque commentedon Feb 4, 2021
I found a solution to
aqueduct db generateif you want to continue using the beta channel. Although I think that's a bad practice, it works!aqueduct db generatein order to create a migrationaqueduct db upgradeI am using Postgres database and I also had to add dependency overrides in
pubspec.yamlfile:As I mentioned above, this is a temporary solution and I think this problem must be solved with other better solution.
91priyansh commentedon Feb 4, 2021
@cmalbuquerque Thanks.. let me try this solution
jairoFernandez commentedon Feb 8, 2021
you need to install Dart for your machine, not use dart flutter, flutter executes his own dart version
NTMS2017 commentedon Feb 10, 2021
I had same problem and I found the solution at is on
#946
SzAttila97 commentedon Feb 25, 2021
@cmalbuquerque Hello!
I switched to the flutter stable channel, tried to run aqueduct db generate, but got the following error:

Any suggestion?
Thanks in advance!
cmalbuquerque commentedon Feb 25, 2021
Hi @SzAttila97!
Try to run
flutter upgradebeforeaqueduct db generateto ensure you have the latest version.SzAttila97 commentedon Feb 25, 2021
Hey! @cmalbuquerque !
After that, I got kinda the same error, but with different version in the error message. 😥

cmalbuquerque commentedon Feb 25, 2021
@SzAttila97 try to run
flutter cleanbeforeaqueduct db generateand make sure that your flutter version inpubspec.yamlfile is the same version than your flutter channelSzAttila97 commentedon Feb 25, 2021
@cmalbuquerque



Done, but got the same error, im so confused!
cmalbuquerque commentedon Feb 25, 2021
@SzAttila97 I have no idea how to solve your problem. Check this issue on flutter's repository that mentioned the same error.
SzAttila97 commentedon Feb 25, 2021
@cmalbuquerque
Alright, thanks anyway.
By the way the method you mentioned at the beggining of the post (changing the channels) still working for you?
Or maybe there was some changes connected with the channels?