-
Notifications
You must be signed in to change notification settings - Fork 927
Closed
Labels
Description
Expected Behavior
Module not found
Current Behavior
npm notice
file:///usr/local/lib/node_modules/@commitlint/cli/lib/cli.js:131
throw err;
^
Error: Cannot find module "@commitlint/config-conventional" from "/home/circleci/project"
at resolveId (file:///usr/local/lib/node_modules/@commitlint/cli/node_modules/@commitlint/resolve-extends/lib/index.js:143:17)
at tryResolveId (file:///usr/local/lib/node_modules/@commitlint/cli/node_modules/@commitlint/resolve-extends/lib/index.js:130:12)
at resolveConfig (file:///usr/local/lib/node_modules/@commitlint/cli/node_modules/@commitlint/resolve-extends/lib/index.js:117:20)
at file:///usr/local/lib/node_modules/@commitlint/cli/node_modules/@commitlint/resolve-extends/lib/index.js:81:26
at Array.reduce (<anonymous>)
at loadExtends (file:///usr/local/lib/node_modules/@commitlint/cli/node_modules/@commitlint/resolve-extends/lib/index.js:80:22)
at resolveExtends (file:///usr/local/lib/node_modules/@commitlint/cli/node_modules/@commitlint/resolve-extends/lib/index.js:57:28)
at load (file:///usr/local/lib/node_modules/@commitlint/cli/node_modules/@commitlint/load/lib/load.js:44:28)
at async main (file:///usr/local/lib/node_modules/@commitlint/cli/lib/cli.js:204:20) {
code: 'MODULE_NOT_FOUND'
}
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
No response
Steps to Reproduce
const LINE_LENGTH = 120;
const TYPES = ["chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test", "release"];
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"body-max-line-length": [2, "always", LINE_LENGTH],
"header-max-length": [2, "always", LINE_LENGTH],
"type-enum": [2, "always", TYPES],
},
};
Context
circle-ci orbs:
commitlint: conventional-changelog/[email protected]
commitlint.config.js
const LINE_LENGTH = 120;
const TYPES = ["chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test", "release"];
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"body-max-line-length": [2, "always", LINE_LENGTH],
"header-max-length": [2, "always", LINE_LENGTH],
"type-enum": [2, "always", TYPES],
},
};](url)
commitlint --version
commitlint/[email protected]
git --version
git --version
node --version
v20
chrepl and eikowagenknecht