-
Notifications
You must be signed in to change notification settings - Fork 934
fix: typescript is now required as of 17.7.1 but is not in the dependency list #3665
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
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This has come up again. Repro example: I’ve narrowed it down to happen when the commitlint dependencies are listed in a subpackage of a monorepo. When these dependencies are defined in the top level package.json, there is no issue. I have noticed that the dependency tree for typescript is different between these cases. For example, when
and when they are only in the root package:
You can try running |
@binomialstew I downloaded your repo and it seems like this is resolved with @commitlint/load v18.2.0 - #3722 . Can you double-check if that's the case? |
Confirmed I am not seeing that error with v18.2.0. Thanks for your help! |
Expected Behavior
I should be able to lint commits without a need for typescript.
Current Behavior
Fatal error when running commitlint:
Error: Cannot find module 'typescript'
Affected packages
Possible Solution
@commitlint/[email protected]
did not present this issue.Steps to Reproduce
1. Install commitlint v17.7.1 in a project without typescript 2. Try to lint a commit
Context
No response
commitlint --version
@commitlint/[email protected]
git --version
v2.32.0
node --version
v18.17.1
The text was updated successfully, but these errors were encountered: