Husky, Cypress, VSCode, (MacOS?): MODULE_NOT_FOUND #1443
theonlydaleking
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Spent a day on this yesterday so I thought I'd leave this here for anyone else trying to solve this.
Was trying to get a pre-commit hook working that would run Cypress e2e tests. I kept running into the issue,
That file didn't exist, and this would happen when I use VSCode's integrated source control to commit changes. But a command line
git commit -m "..."
worked fine.The thing that got it working for me was this:
unset ELECTRON_RUN_AS_NODE
In my
.husky/pre-commit
fileBeta Was this translation helpful? Give feedback.
All reactions