release-it / keep-a-changelog

Keep a Changelog plugin for release-it
MIT License
27 stars 15 forks source link

Release auto changelog require() #26

Closed Mikaleb closed 1 month ago

Mikaleb commented 2 years ago

Trying to make : https://github.com/release-it/keep-a-changelog works

ERROR require() of ES Module /home/mikaleb/Companies/XXX/code/XXX/node_modules/@release-it/keep-a-changelog/index.js from /home/mikaleb/Companies/XXX/code/XXX/node_modules/import-from/index.js not supported.
Instead change the require of /home/mikaleb/Companies/XXX/code/XXX/node_modules/@release-it/keep-a-changelog/index.js in /home/mikaleb/Companies/XXX/code/XXX/node_modules/import-from/index.js to a dynamic import() which is available in all CommonJS modules.
error Command failed with exit code 1.
WirthAware commented 2 years ago

You should update release-it to the latest version, this should fix you issue. release-it changed how to import the plugins so you need to update both.

webpro commented 1 month ago

Thanks @WirthAware. Hopefully it resolved the issue for @Mikaleb.