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
conventional-changelog-preset-loader dependency issue for yarn 2 and up #1223
Comments
@rickh18 Hi. Did you install |
@rickh18 ping |
Hi @dangreen , Thank you for your response. installing With these dependencies: "devDependencies": {
"@commitlint/config-conventional": "^19.1.0",
"@release-it/conventional-changelog": "8.0.1",
"conventional-changelog-conventionalcommits": "^7.0.2",
"release-it": "17.2.0"
} I still get the same error: ERROR Unable to load the "conventionalcommits" preset. Please make sure it's installed. Yarn calls this a ghost dependency. I would suggest to at it as a peer dependency with peerDependencyMeta |
@rickh18 Please provide minimal reproduction. You can provide repo, or sandbox in codesandbox or in stackblitz |
@rickh18 ? |
The
conventional-changelog-preset-loader
has theconventional-changelog-conventionalcommits
set under devDependenciesThis breaks in yarn V2 and above.
The conventionalcommits preset cannot be loaded. To fix this issue I've added a packageExtension in the yarnrc file:
.yarnrc.yml
After adding this all works as expected.
I think that adding it as an optional peer dependency would fix this. Then the conventionalcommits package can be added on an as needed basis. Alternatively, the package should be included as a dependency.
I assume that the same issue persist for the
conventional-changelog-angular
package.I'm using this package through
@release-it/conventional-changelog
.release-it.js
The text was updated successfully, but these errors were encountered: