conventional-changelog / standard-version

:trophy: Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org
ISC License
7.69k stars 794 forks source link

Error [ERR_REQUIRE_ESM]: require() of ES Module #939

Open envCode opened 1 year ago

envCode commented 1 year ago

Describe the bug const wrap = require('wrap-ansi'); Error [ERR_REQUIRE_ESM]: require() of ES Module

Current behavior standard-version

Expected behavior standard-version

Environment

Possible Solution 一般都是当前使用依赖的版本过高导致,请将对应的依赖降低版本。 降低到那个版本?

Additional context image

choi2k commented 3 months ago

For anyone experiencing this issue, try removing and then adding the standard-version package. It worked for me.