[FEAT]: Do we have the CJS version? If not, are we considering supporting CJS?
shen774411223d opened this issue · comments
Describe the need
My project is based on CJS and I want to import octokit.js, but it is not compatible with ESM.
SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
👋 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 Status: Up for grabs
. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
This package is still CJS, it hasn't moved to ESM yet. It will be the last major version to support CJS
sorry, but i install lastest version. in octokit/core package.json, the type is module.
why i install package not cjs?
thank you answer!
octokit/core package.json
{
"type": "module"
}
That is a different package, and a different repository.
You need to use the last CJS version, which is https://github.com/octokit/core.js/releases/tag/v5.2.0
Thank you very much for your answer. This is exactly the package I want.