You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Node >= 18
2. Using `@commitlint/config-nx-scopes`
3. Throwing error
(node:35973) [DEP0151] DeprecationWarning: No "main" or "exports" field defined in the package.json for /.../../node_modules/@commitlint/config-nx-scopes/ resolving the main entry point "index.js", imported from /.../../.commitlintrc.js.
Default "index" lookups for the main are deprecated for ES modules.
In package.json of @commitlint/config-nx-scopes
{
"name": "@commitlint/config-nx-scopes",
"type": "module", // ==> Module Defined but no main or exports defined
"version": "19.0.3",
"description": "Shareable commitlint config enforcing nx project names as scopes",
"files": [
"index.js"
]
}
The new version has the same error, and the downgraded version to version 17.4.2 can be used normally, but I am sorry that other versions have not been tested
Steps to Reproduce
In
package.json
of@commitlint/config-nx-scopes
Current Behavior
No response
Expected Behavior
Should work, without throwing errors.
Affected packages
Possible Solution
No response
Context
No response
commitlint --version
@commitlint/[email protected]
git --version
2.34.1
node --version
v18.19.0
The text was updated successfully, but these errors were encountered: