You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading @types/node v22.7.9, the following error occurs when executing the tsc command.
node_modules/.pnpm/[email protected]/node_modules/discord.js/typings/index.d.ts(986,14): error TS2417: Class static side 'typeof Client' incorrectly extends base class static side 'typeof BaseClient'.
The types returned by 'on(...)' are incompatible between these types.
Property '[Symbol.asyncDispose]' is missing in type 'AsyncIterableIterator<any>' but required in type 'AsyncIterator<any[], any, any>'.
It could be a problem with @types/node, but this type error appears to be occurring in discord.js, so we will raise it here first.
I had this same issue, and it was fixed by adding esnext.disposable to my lib. Looking at the linked repo, it looks like they only have esnext.asyncdisposable, which I'm not sure exists.
@book000 Try changing esnext.asyncdisposable to esnext.disposable in your tsconfig.json lib
Which package is this bug report for?
discord.js
Issue description
After upgrading @types/node v22.7.9, the following error occurs when executing the tsc command.
It could be a problem with @types/node, but this type error appears to be occurring in discord.js, so we will raise it here first.
Code sample
https://github.com/jaoafa/discord-new-threads/actions/runs/11490768941/job/31982043563?pr=1179
Versions
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
Not applicable
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: