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
install deps with pnpm install and run pnpm run lint
see error message:
TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file:///data/Development/playground/com/node_modules/.pnpm/@acdh-oeaw+commitlint-config@1.0.0_@commitlint+cli@19.0.3/node_modules/@acdh-oeaw/commitlint-config/commitlintrc.json" needs an import attribute of type "json"
at validateAttributes (node:internal/modules/esm/assert:89:15)
at defaultLoad (node:internal/modules/esm/load:153:3)
at async ModuleLoader.load (node:internal/modules/esm/loader:409:7)
at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:45)
at async link (node:internal/modules/esm/module_job:76:21) {
code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
Steps to Reproduce
pnpm install
and runpnpm run lint
Current Behavior
extending a package with provides a .json commitlint config currently fails with "ERR_IMPORT_ASSERTION_TYPE_MISSING" error.
Expected Behavior
should work like it did with version 18.
see the v18 branch in the issue reproduction repo, which works.
Affected packages
Possible Solution
No response
Context
No response
commitlint --version
@commitlint/cli@19.0.3
git --version
git version 2.43.2
node --version
v20.11.1
The text was updated successfully, but these errors were encountered: