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

Husky pre-commit hook error #626

Open
davydocsurg opened this issue May 9, 2023 · 3 comments
Open

Husky pre-commit hook error #626

davydocsurg opened this issue May 9, 2023 · 3 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@davydocsurg
Copy link
Contributor

davydocsurg commented May 9, 2023

When attempting to run a git commit, I got this: Error [ERR_REQUIRE_ESM]: require() of ES Module error from husky.

This issue can be resolved by updating Husky to version 7.0.0 or later, which includes support for ES modules. Alternatively, developers can switch to using CommonJS modules in their pre-commit script.

Screenshots
Screenshot 2023-05-09 at 9 51 16 AM

Ideal Solution

Bump husky version to 7 to fix bug.

OS Details

macOS Ventura Version 13.0

@ijemmao ijemmao added bug Something isn't working good first issue Good for newcomers labels Jun 5, 2023
@vunderkind
Copy link

Could someone assign this to me? If assigned tonight I can hand over a PR by tomorrow.

@ijemmao
Copy link
Collaborator

ijemmao commented Jun 20, 2023

@vunderkind just assigned, good luck 🫡 and thank you!

@vunderkind
Copy link

vunderkind commented Jun 20, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants