`lerna version --conventional-commits` fails with a module resolution error
Author: InfamousStarFoxCreated Sep 9, 2026Updated Sep 9, 2026
Labelstype: bug
Current Behavior
Running lerna version --conventional-commits fails with a module resolution error:
lerna ERR! ERR_MODULE_NOT_FOUND: Cannot find package 'conventional-commits-filter'
imported from ../node_modules/@conventional-changelog/git-client/dist/index.jsExpected Behavior
lerna version --conventional-commits should generate the changelog and create the GitHub release without crashing. (It worked in8.x and 9.x)
Steps to Reproduce
- Install
[email protected] - Run
npx lerna version --conventional-commits --create-release github --yes - The error occurs
Temporary workaround
Adding the following code to package.json fixes the issue
"overrides": {
"lerna": { "conventional-changelog": ">=8.1.3" }
}Or install conventional-commits-filter as a devDependency
Suggested Fix
Bump the Lerna's conventional-changelog dependency from 8.1.0 to 8.1.3. See https://github.com/conventional-changelog/conventional-changelog/releases/tag/conventional-changelog-v8.1.3
Source: lerna/lerna