Comments (5)
I had a similar problem when updating an old package and in my case the problem was that in my package.json
I had the following config:
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
I was getting the issue even when I'd updated to ^3.0.2
, and found I had to update the config to:
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
This is actually what's documented in the setup instructions 😅 so I'm just putting this here in case it helps anyone.
from cz-conventional-changelog.
i notice that if i install commitizen
locally, things work again, so it seems that git cz
is not finding the globally installed version for some reason
from cz-conventional-changelog.
looks to me like the issue is the direct dependency on the commitizen
package in order to use its config loader. This package only marks commitizen
as a devDependency
, so when commitizen
is installed globally, but cz-conventional-changelog
is installed locally, it isn't able to access commitizen
.
i'll put up a PR to mark commitizen
as a dependency
instead of a devDependency
. i could see this as a potential reason to split the config loader to a separate package, but that decision is totally in your hands.
from cz-conventional-changelog.
🎉 This issue has been resolved in version 3.0.2 🎉
The release is available on:
Your semantic-release bot 📦🚀
from cz-conventional-changelog.
@morphatic thanks for this. I got the message 'Could not resolve' after following the docs and installing -g and also setting up the repo to be Comitizen friendly.
I updated the package.json config as you suggested
"config": { "commitizen": { "path": "cz-conventional-changelog" } }
and it now works! - this was effecting [email protected], [email protected]
from cz-conventional-changelog.
Related Issues (20)
- Consider switching to a different prompt library HOT 3
- NPM audit reports low vulnerability in dependency HOT 3
- require('@commitlint/load') does not work properly anymore HOT 9
- Better Tests HOT 1
- 2nd source of lodash 4.17.14 vulnerability
- Commitlint config loading not working
- Something maybe wrong with the code in engine.js
- Vulnerability Prototype Pollution HOT 2
- Add config option to extend instead of overriding HOT 1
- Add prompter option to append .gitmessage to commits
- Add support for optional exclamation mark (!) HOT 1
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- [Feature request] Add autocomplete feature
- Vulnerability warnings with ansi-regex and minimist HOT 11
- Title config in package.json is not working anymore, but still remaining in README.md
- the adapter does not respect the commit types defined in .versionrc
- add an option to customize scopes HOT 1
- Add additional prompt for co-authors
- Skip some of the questions with configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cz-conventional-changelog.