Skip to content

Cannot read property 'load' of undefined #731

Closed
@hristijankiko

Description

@hristijankiko

I attempted to install and set up commitizen to my project for the first time, but it seems like it is throwing a strange error.

> npx git-cz

Cannot read property 'load' of undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1

This is a fresh install and no custom configuration. This is what is in my package.json config

"config": {
    "commitizen": {
      "path": "./node_modules/cz-conventional-changelog"
    }
  }

I had a look through the code and I suspect this is the line where the error is thrown
image

If anyone has any idea why it would be throwing this error please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions