Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Did you mean to import "cosmiconfig-typescript-loader/dist/cjs/index.cjs"? #4093

Open
4 tasks
marafat opened this issue Jul 2, 2024 · 2 comments
Open
4 tasks
Labels

Comments

@marafat
Copy link

marafat commented Jul 2, 2024

Steps to Reproduce

1. Upgrade from v18 to v19 
2. run `git cz`

Current Behavior

Error:

$ git cz
[email protected], @commitlint/[email protected]

Cannot find module '<project_local_path>/node_modules/cosmiconfig-typescript-loader/dist/esm/index.mjs' imported from <project_local_path>/node_modules/@commitlint/load/lib/utils/load-config.js
Did you mean to import "cosmiconfig-typescript-loader/dist/cjs/index.cjs"?

Expected Behavior

Prompt to load and allow commiting.

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

No response

Context

package.json before:

"devDependencies": {
    "@commitlint/cli": "18.6.1",
    "@commitlint/config-conventional": "18.6.2",
    "@commitlint/cz-commitlint": "18.6.1",
    "commitizen": "4.3.0",
}

package.json after:

"devDependencies": {
    "@commitlint/cli": "19.3.0",
    "@commitlint/config-conventional": "19.2.2",
    "@commitlint/cz-commitlint": "19.2.0",
    "commitizen": "4.3.0",
}

Config file commitlint.config.cjs

commitlint --version

@commitlint/[email protected]

git --version

git version 2.39.3 (Apple Git-146)

node --version

v20.14.0

@marafat marafat added the bug label Jul 2, 2024
@escapedcat
Copy link
Member

Hm, which version of cosmiconfig-typescript-loader have you installed?

@marafat
Copy link
Author

marafat commented Jul 8, 2024

In my yarn.lock I have "cosmiconfig-typescript-loader@npm:^5.0.0": which is set as a dependency on @commitlint/[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants