jonataslaw / get_cli

Official Getx CLI
Apache License 2.0
612 stars 179 forks source link

Error on get create project #239

Open khafidz225 opened 1 year ago

khafidz225 commented 1 year ago

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

amsyary commented 1 year ago

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

timmolter commented 11 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 10 months ago

same issue

pratikPSB commented 10 months ago

image

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

pratikPSB commented 10 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 10 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