Closed
Description
✅ Checklist
- I am using the latest version
- I have searched FAQ
📄 System Info
System:
OS: Windows 10 10.0.19045
Memory: 5.86 GB / 15.86 GB
Binaries:
Node: 18.19.0
pnpm: 8.15.4
npmPackages:
@commitlint/cli: ^19.0.3
@commitlint/config-conventional: ^19.0.3
commitizen: ^4.3.0
cz-git: ^1.8.0
vite: ^5.1.4
🔎 Description
未使用全局配置,使用@commitlint/config-conventional^19的情况下出现以下异常,降级为^18异常消失。
require() of ES Module ~\node_modules.pnpm@[email protected]\node_modules@commitlint\config-conventional\lib\index.js from ~\node_modules.pnpm\[email protected]\node_modules\cz-git\lib\index.js not supported.
Instead change the require of ~\node_modules.pnpm@[email protected]\node_modules@commitlint\config-conventional\lib\index.js in ~\node_modules.pnpm\[email protected]\node_modules\cz-git\lib\index.js to a dynamic import() which is available in all CommonJS modules.
🔗 Reproduction link / repo:
No response