Coder Social home page Coder Social logo

Comments (5)

morphatic avatar morphatic commented on August 20, 2024 19

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.

travi avatar travi commented on August 20, 2024

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.

travi avatar travi commented on August 20, 2024

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.

commitizen-bot avatar commitizen-bot commented on August 20, 2024

🎉 This issue has been resolved in version 3.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

from cz-conventional-changelog.

michaelmccallam avatar michaelmccallam commented on August 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.