frinyvonnick / gitmoji-changelog

A changelog generator for gitmoji 😜
https://www.npmjs.com/package/gitmoji-changelog
MIT License
390 stars 49 forks source link

Error when running `npx gitmoji-changelog init` #198

Closed SturmB closed 4 years ago

SturmB commented 4 years ago

This is probably just a result of running npx gitmoji-changelog init right after running npx gitmoji-changelog:

Stacktrace

Error: undefined is not a valid semver version.
    at getChangelog (C:\Users\christopher.mcgee\AppData\Roaming\npm-cache\_npx\28432\node_modules\gitmoji-changelog\src\cli.js:138:11)
    at async main (C:\Users\christopher.mcgee\AppData\Roaming\npm-cache\_npx\28432\node_modules\gitmoji-changelog\src\cli.js:98:27)

Environment

System:

CLI options

Project info

Repository info


This error report was generated with ❤️ by issue-reporter

frinyvonnick commented 4 years ago

Hi @SturmB 👋

Thank you for posting this issue. The init command has an issue in the last released version. It has been fixed in the canary version. I'll try to publish as soon as possible. I recommend using npx gitmoji-changelog directly since it determines itself if it should use init or update command based on CHANGELOG.md existence. Hope it answers your question 👍

SturmB commented 4 years ago

That sounds okay to me; thank you. 😊