-
Notifications
You must be signed in to change notification settings - Fork 552
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
"Could not find prompter method in the provided adapter module: dist/index.js" #926
Labels
Comments
🎉 This issue has been resolved in version 4.2.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
tal-rofe
pushed a commit
to tal-rofe/cz-vinyl
that referenced
this issue
Apr 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I created my own adapter for commitizen. At first, I built the adapter using TSC.
The problem is that I export an async function:
But when I try to apply this adapter with commitizen I got the error in the title.
When I transformed my exported function to non-async, but using "().then()" it was resolved
The reason is, when exporting such thing, its type is:
[object AsyncFunction]
However, commitizen will emit error.
Because: https://github.com/commitizen/cz-cli/blob/master/src/common/util.js
line 41:
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
This should be:
return functionToCheck && (getType.toString.call(functionToCheck) === '[object Function]' || getType.toString.call(functionToCheck) === '[object AsyncFunction]');
The text was updated successfully, but these errors were encountered: