-
Notifications
You must be signed in to change notification settings - Fork 39
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
Error in version 7.0.1: createPreset
is not a function.
#70
Comments
Does using |
It does not. The error persists. Also, I pinned npm's version to 7.0.0, and the bug is not present in that version. prettier-config on main [!] is 📦 v1.0.0 via v18.17.0 took 11s
❯ npm run release -- --changelog
> @garavest/[email protected] release
> release-it --changelog
✔ git pull
✔ npm run lint
WARNING Environment variable "GITHUB_TOKEN" is required for automated GitHub Releases.
WARNING Falling back to web-based GitHub Release.
ERROR createPreset is not a function |
So, looking over the code, it would appear this isn't an issue with your plugin. I wonder if the issue lies with |
Found it. Sorry for the comment spam. There is a bug in |
If anyone could open a PR for this plugin and update the relevant (or all) dependencies that would be great! |
Could this help #75 ? |
Released v7.0.2, hth! |
Hi, even though we updated to the latest version 7.0.2, we are still facing this issue. Installed deps:
Error:
|
Did you go from |
Yes, we did. We are using yaml, but tried both yaml and json with the |
My setup is working fine using version 7.0.2 and the new configuration. I
am using the JSON config.
https://github.com/garavest/eslint-config/blob/main/.release-it.json
…On Mon, Oct 9, 2023, 2:26 PM Norman Rusch ***@***.***> wrote:
Yes, we did. We are using yaml, but tried both yaml and json with the name
prop you've mentioned.
—
Reply to this email directly, view it on GitHub
<#70 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXRIYCKTI7WUMWJDGJMGRDX6RFXBAVCNFSM6AAAAAA4LJGC5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGU3TINBWGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
From a small test, I also see now that in our code in the
But this code fails:
returning the error |
Thank you @silversonicaxel, this is exactly the issue. |
So is the angular preset not usable anymore? I can also confirm the EDIT: I guess we're waiting on this conventional-changelog/commitlint#3698 |
Hello @eagerestwolf, release https://github.com/conventional-changelog/commitlint/releases/tag/v18.4.3 should have fixed your issue! |
If I understand correctly, the original issue is still not resolved, right? Unfortunately not seeing updates from relevant dependencies atm. |
…encies Following error appears with `@commitlint/[email protected]` and `[email protected]`: `ERROR The "angular" preset does not export a function. Maybe you are using an old version of the preset. Please upgrade.` See GitHub issue for more details: release-it/conventional-changelog#70
I confirm that upgrading |
Version 7.0.1 of this plugin has a bug that prevents release-it from running at all. When running release-it (presumably in the
after:bump
hook where this plugin should be running) an error will be thrown, saying thatcreatePreset
is not a function. This error exists on my local machine as well as Girhub Actions. I know the issue is this plugin because release-it was working correctly until this plugin was installed. For reference, I have included thepackage.json
,.release-it.json
, and release workflow yaml from one of my projects, as well as the output from release-itpackage.json
.release-it.json
.github/workflows/release.yml
release-it output
This is from Github Actions, but I get an idential error on my local machine.
For the time being, I will try reverting to version 7.0.0 and just ignore the PRs from Dependabot. I mainly just wanted to bring this to your attention.
The text was updated successfully, but these errors were encountered: