Skip to content

docs: Instructions for filtering nx projects are out of date #4036

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

Closed
4 tasks
jaytavares opened this issue Apr 18, 2024 · 0 comments · Fixed by #4037
Closed
4 tasks

docs: Instructions for filtering nx projects are out of date #4036

jaytavares opened this issue Apr 18, 2024 · 0 comments · Fixed by #4037
Labels

Comments

@jaytavares
Copy link
Contributor

Steps to Reproduce

1. Use @commitlint/config-nx-scopes
2. Follow [filtering projects instructions in docs](https://github.com/conventional-changelog/commitlint/blob/0288c6129200f5e1f469e71babbfd4fd5885f6be/%40commitlint/config-nx-scopes/readme.md#filtering-projects)

Current Behavior

Error at commit time:

require() of ES Module /Users/[...]/node_modules/@commitlint/config-nx-scopes/index.js from /Users/[...]/.commitlintrc.js not supported.
Instead change the require of index.js in /Users/[...]/.commitlintrc.js to a dynamic import() which is available in all CommonJS modules.

Expected Behavior

Commitlint should execute successfully.

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Update documentation to indicate proper usage. PR forthcoming...

Context

No response

commitlint --version

@commitlint/[email protected]

git --version

v2.39.3

node --version

v18.19.1

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

Successfully merging a pull request may close this issue.

1 participant