wolfy1339
wolfy1339
> I'd like to make a counterpoint to this. I forked a project that was using this instead of the newer version you linked. `@octokit/rest` is still being updated, and...
@hunxjunedo Have you made any progress on this issue?
Can you share a code snippet demonstratimg the issue?
Please share reproducible code example
That specific error message suggest you are not using ESM. Please see the usage section in the README: https://github.com/octokit/core.js?tab=readme-ov-file#usage
Are you using typescript at all? In typescript just because you are importing using ESM imports doesn't mean you are using ESM
If anyone is experiencing this issue, please give a small reproducible example in a separate repo. Include the `package.json` and the `tsconfig.json` as well as a file that has the...
> Anyone found a workaround for this, i'm also experiencing same issue @iamnotstatic Please read my comment above. Please provide all relevant information
@Darker935 `@octokit/rest` is not an ESM module yet, you will have to downgrade `@octokit/auth-token` Also, you are still using CJS in your example which explains some of the errors
I understand that downgrading has solved the issue, I really wish to diagnose and fix this issue for users