Closed paduszyk closed 3 months ago
Potentially related to alessandrojcm/commitlint-pre-commit-hook#152.
Thanks for the report! Yes, it looks like this is due to commitlint v19 supporting ESM only. The fix seems straightforward; I'll look to have this fixed in the next day or so.
Unfortunately this did not work the way I thought it did and I had to revert it due to the issue raised in #755. I have an idea to resolve this again, but will require some more work.
2.6.0 is now out and should take care of this. Thanks for your patience!
@joshbolduc, I hate to bring the bad news, but it still seems broken for v19. https://github.com/joshbolduc/vscode-commitlint/issues/784 still doesn't work with extension version 2.6.0
# npm list -g
/opt/conda/lib
├── @commitlint/cli@19.3.0
├── @commitlint/config-conventional@19.2.2
And the extension output:
loading @commitlint/parse dynamically via /opt/conda/lib/node_modules/@commitlint/cli/node_modules/@commitlint/parse/lib/index.js
loading @commitlint/load dynamically via /opt/conda/lib/node_modules/@commitlint/cli/node_modules/@commitlint/load/lib/load.js
loading @commitlint/lint dynamically via /opt/conda/lib/node_modules/@commitlint/cli/node_modules/@commitlint/lint/lib/lint.js
Load config error stack:
Error: Cannot find module "@commitlint/config-conventional" from "/workspaces/docs"
The downgrade to v18.6.3 still works.
I wanted to add that it worked for me. I checked the extension had updated to v2.6.0, restarted it under the Extensions tab, updated my commitlint
dependencies to v19.x.x, and it started working. I then updated my repo config to a module (details here: ChristopherBull/demo-semantic-release/issues/2) and that also worked.
Thanks.
Hi!
My
.commitlintrc.js
:Everything went smoothly until I upgraded
commitlint
to v19 (19.0.3, to be more specific).Now my output (as I am typing anything into commit message field of the Git panel) is as follows:[^1]
[^1]: I have checked that downgrading to
cli==18.6.1
andconventional-config==18.6.2
fixes the problem.