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
For some reason, some ESM code is included in earlier versions, where CommonJS is supposed to be still compatible. Upgrading to said versions breaks CommonJS apps.
Summary
git-raw-commits@4.0.0 depends on dargs@8.1.0, which is ESM only
git-raw-commits@4.0.0 has ESM code
conventional-recommended-bump@8.0.0 depends on git-raw-commits@4.0.0
conventional-recommended-bump@9.0.0 depends on git-raw-commits@4.0.0
conventional-changelog-preset-loader@4.1.0 has ESM code
Errors
Unable to load the "<project root>\node_modules\conventional-changelog-conventionalcommits\index.js" preset. Please make sure it's installed. at loadPreset (node_modules/conventional-changelog-preset-loader/index.js:115:13) at conventionalRecommendedBump (node_modules/conventional-recommended-bump/index.js:25:14) Cause:TypeError: A dynamic import callback was invoked without --experimental-vm-modules
Unable to load the "angular" preset. Please make sure it's installed. at loadPreset (node_modules/conventional-changelog-preset-loader/index.js:115:13) at conventionalRecommendedBump (node_modules/conventional-recommended-bump/index.js:25:14)Cause:TypeError: A dynamic import callback was invoked without --experimental-vm-modules
For some reason, some ESM code is included in earlier versions, where CommonJS is supposed to be still compatible. Upgrading to said versions breaks CommonJS apps.
Summary
git-raw-commits@4.0.0
depends ondargs@8.1.0
, which is ESM onlygit-raw-commits@4.0.0
has ESM codeconventional-recommended-bump@8.0.0
depends ongit-raw-commits@4.0.0
conventional-recommended-bump@9.0.0
depends ongit-raw-commits@4.0.0
conventional-changelog-preset-loader@4.1.0
has ESM codeErrors
Code to be fixed
conventional-changelog-preset-loader@4.1.0
This
import
should be changed torequire
:conventional-changelog/packages/conventional-changelog-preset-loader/index.js
Line 5 in a14d218
git-raw-commits@4.0.0
This line should be changed to
const dargs = require('dargs')
conventional-changelog/packages/git-raw-commits/index.js
Line 25 in 878fc56
Should depend on v7.0.0, not v8.0.0 (which is pure ESM)
conventional-changelog/packages/git-raw-commits/package.json
Line 36 in 878fc56
Releases to be fixed
The text was updated successfully, but these errors were encountered: