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
Cannot import husky v9 with moduleResolution: "node" #1396
Comments
Thanks for the test repo. I'm sorry I don't know. Husky doesn't do anything fancy with TS so I'm not sure why it's failing. There's no build step so you can check directly the code, it's the one that is published. Do you have the same issue with husky v9.0.8? |
Looks like it works in |
AFAICT adding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Typescript can't find types for a husky v9 import when using
"moduleResolution": "node"
. It seems to work with"moduleResolution": "nodenext"
(but that causes other issues for me.It's unclear from the release notes whether this is intended as part of the nodejs 14/16 support drop. Feel free to close if it's expected.
Steps to Reproduce
pnpm i
(I also tested with npm, no difference)npx tsc -p tsconfig-nodenext.json
- successnpx tsc -p tsconfig-node.json
This also confirms it's the types in the published package causing this issue with this particular
moduleResolution
, not some quirk of my setup: https://arethetypeswrong.github.io/?p=husky%409.0.11Again, not sure if this is intended.
The text was updated successfully, but these errors were encountered: