require('@commitlint/load') does not work properly anymore
See original GitHub issueSince @commitlint/load release v9, this line of code is not working anymore and as a result, no config could be downloaded
https://github.com/commitizen/cz-conventional-changelog/blob/master/index.js#L32
The reason is require('@commitlint/load')
now returns {default: func}
but not function itself.
Here is my package.json:
{
"scripts": {
"commit": "git-cz"
},
"devDependencies": {
"@commitlint/cli": "^9.1.1",
"@commitlint/config-conventional": "^9.1.1",
"commitizen": "^4.1.2",
"conventional-github-releaser": "^3.1.3",
"cz-conventional-changelog": "^3.2.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.2",
"typescript": "^3.9.2",
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.ts": [
"eslint --fix"
]
}
}
It didnt work even if you specify @commitlint packages versions as 8.3.5, or specify @commitilint/load directly to deps with version 8.3.5. It looks like cz-conventional-changelog
installs latest version by itself
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
Top Results From Across the Web
lua-libloader - npm Package Health Analysis - Snyk
The npm package lua-libloader was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed ...
Read more >mozilla-central: changeset 603618 ...
1. Commit and push your changes and open a pull request. The commit message must contain the version in `Chromium <version> (<revision>)` format...
Read more >Licenses mobile - MATTR Learn
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,...
Read more >7zip-bin-osx 5.1.1 : MIT License @auth0/auth0-react 1.2.0
Modified Version complies with the requirements of this license. (12) This license does not grant you the right to use any trademark,.
Read more >Open Source Declaration for: Extreme Universal Compute ...
Warranty Regarding Use of Open Source Software ... create-require ... No right is granted to the trademarks of Licensor even if such marks....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I might fix this in a commit on #126, as on that branch we can actually properly test config loading.
The issue still exists today as you can see in issue #129. Tried with version 8.3, 9.1 and version 12.0 of commitlint, the config is not loaded correctly.