-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Method Date.prototype.toString called on incompatible receiver [object Date] #675
Comments
What version of semantic-release are you running? You likely need to upgrade that as well. Also, you should not need to install the release-notes-generator separately since it is a dependency of semantic-release. You likely have multiple versions installed. Your safest option is to let semantic-release just use the one it includes as a dependency |
So I reverted the package version to get it working again. These are the dependencies I have installed: "semantic-release": "23.0.8",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "12.0.0",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "10.0.6",
"@semantic-release/npm": "12.0.1",
"@semantic-release/release-notes-generator": "13.0.0", I thought I should have each individually installed based on the docs: |
I am running into the same error using these versions
|
It does work if I also upgrade conventional-changelog-conventionalcommits to version 8. So I am good :D |
Looks like conventional-changelog/commitlint#4069 will help us 🤞 which bumps |
…ator` due to semantic-release/release-notes-generator#675" This reverts commit 0acf854.
Perhaps this helps: The issue I discovered is that conventional-changelog-writer is not able to serialize with In my project I use a custom conventional changelog and have adjusted the transform method of the writer so that all dates in the commits will be dropped. This is OK for my case, as I do not use this in my templates. I am using:
The only difference I could notice is that conventional-changelog has switched to esm modules and the release notes generate is now using In my specific case this is really challenging because I need to transpile my custom-conventional-changelog to |
confirmed adding |
i'm closing this as solved. upgrade to the latest versions of semantic-release and whatever preset you've opted into using. avoid directly depending on semantic-release packages that are already dependencies of semantic-release itself |
I got this error
when upgrading:
"@semantic-release/release-notes-generator": "13.0.0",
"@semantic-release/release-notes-generator": "14.0.0",
my release config looks like this
The text was updated successfully, but these errors were encountered: