Hello Community Members,
So today after making some necessary changes I tried to commit my changes.
But it throws,
husky - pre-commit hook exited with code 1 (error)
this error. If anyone of you have faced please help or suggest a way to resolve it.
Thanks in advance.
Hey @Sagar.Singh. there could be two solutions for this. the first one you can flush your .github/husky folder and then re-install. or the temporary/quick solution can be to add git commit -m "message" --no-verify
to use no verify.
Note: @Sagar.singh " One thing I would like to add is that when I tried commiting through wsl It worked perfectly fine without any error. It only happened when I tried commiting though vscode. Maybe Its because of vscode."
Thank you @Yash_Sharma I’ll try to perform the above solution.
Yeah sure, Let me know if that helps
I vote for @Yash_Sharma 's provided potential solution to be approved.
// @vishalvivekm
@Samyak.Shah @vishalvivekm @Yash_Sharma One thing I would like to add is that when I tried commiting through wsl It worked perfectly fine without any error. It only happened when I tried commiting though vscode. Maybe Its because of vscode.
@Sagar.Singh @Yash_Sharma Thanks folks. It’s helpful.
Thanks to you too @vishalvivekm. Cheers