-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG]: [Nestjs] [ERR_REQUIRE_ESM]: require() of ES Module not supported #2680
Comments
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with |
This seems like an issue with NestJS. They don't have support for ESM A quick search yields nestjs/nest#7021 |
same error |
This modern web is something crazy. |
It is not an issue with this library. We don't do CJS builds anymore. NestJS doesn't support ESM as I've linked to above. The error given means that you are trying to import an ESM library using CJS It is not an issue on our side. Other libraries might still have support for CJS, we decided to switch to ESM only. Please read the changelog and previous issues before posting on an old resolved issue. Simply use an older version of Octokit that still has CJS support. |
What happened?
Throw error
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported.
in nestjs framework.I have change it below, but it not working in nestjs.
Versions
Latest
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: