jonataslaw / get_cli

Official Getx CLI
Apache License 2.0
601 stars 178 forks source link

Error on get create project #239

Open khafidz225 opened 11 months ago

khafidz225 commented 11 months ago

I created a new project using Get CLI and I got an error like this

amsyary commented 10 months ago

yea same here, my workaround is just create new flutter project and run > get init

timmolter commented 9 months ago

https://github.com/dart-lang/sdk/issues/50319

dart migrate is no longer available in the newer dart versions, so that line of code using it should just be removed by this project's maintainer.

tengfei86 commented 9 months ago

same issue

pratikPSB commented 9 months ago

image

I am also facing the same issue. Please do needful for this issue.

pratikPSB commented 9 months ago

Hello @khafidz225, @tengfei86 I have resolved this error by using the below commands.

First, deactivate the current get_cli by using the below command. dart pub global deactivate get_cli

Then, you need to activate this repo's get_cli version using the below command. dart pub global activate -s git https://github.com/jonataslaw/get_cli.git

as I have seen that the latest code of this branch doesn't have the executable shell command dart migrate --apply-changes --skip-import-check

You can check the shel.utils.dart file.

jeppung commented 9 months ago

Hello @khafidz225, @tengfei86 I have resolved this error by using the below commands.

First, deactivate the current get_cli by using the below command. dart pub global deactivate get_cli

Then, you need to activate this repo's get_cli version using the below command. dart pub global activate -s git https://github.com/jonataslaw/get_cli.git

as I have seen that the latest code of this branch doesn't have the executable shell command dart migrate --apply-changes --skip-import-check

You can check the shel.utils.dart file.

this solution works for me