Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Flutter #11

Open
uc-asa opened this issue Nov 20, 2023 · 2 comments
Open

Issue with Flutter #11

uc-asa opened this issue Nov 20, 2023 · 2 comments

Comments

@uc-asa
Copy link

uc-asa commented Nov 20, 2023

Hey Guys,

I wanted to use husky in my flutter project, but unfortunately It trows the error.
It's because I'm using with flutter command not dart. Also I'm bound to use flutter command as I have some dependency for UT and other stuff. Can you please help me out with this problem.

Here is error that I'm getting in my terminal.

Resolving dependencies in /porjectpath/0s)
Because project depends on flutter_test from sdk which doesn't exist (the Flutter SDK is not available), version solving failed.

Flutter users should run `flutter pub get` instead of `dart pub get`. .
@hyiso
Copy link
Owner

hyiso commented Nov 20, 2023

@uc-asa
Could you please provide the error hook script content? it can help to find what was going wrong

@pawan-logiciel
Copy link

pawan-logiciel commented Aug 29, 2024

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

flutter analyze

@hyiso Can you check that
Here for me flutter analyze command is not working

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

No branches or pull requests

3 participants