-
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
Error [ERR_REQUIRE_ESM]: require() of ES Module #916
Comments
the easiest fix here seems to be to publish the |
As the source code currently Nowadays packages maintainers going to support ESM only. Resolution: |
Does cz-cli now support ES modules? So can you help me? @tal-rofe |
It is hard to understand the issue you have. Why would you need to modify your source code to use I have an example of a package written in ESM, https://github.com/Exlint/cz-vinyl, where I also use |
Thank you very much for your reply. The problem has been solved. As for mentioning modifying the source code, it is because I saw that you wrote about it on April 21st, 2023.
|
@tal-rofe I expect that the only way to deal with this is something like commitizen looking at an adapter path to try to determine if the adapter is esm or commonjs and then using |
Code should only use |
I was able to fix this issue by upgrading |
when trying to build custom commitizen prompt configs in node >14 where
it throws an error
The text was updated successfully, but these errors were encountered: