getting typings error
tsc
node_modules/discord.js/typings/index.d.ts:1210:21 - error TS1139: Type parameter declaration expected.
1210 public getChannel<const Type extends ChannelType = ChannelType>(
~
node_modules/discord.js/typings/index.d.ts:1210:27 - error TS1435: Unknown keyword or identifier. Did you mean 'type'?
1210 public getChannel<const Type extends ChannelType = ChannelType>(
~~
node_modules/discord.js/typings/index.d.ts:1210:32 - error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
1210 public getChannel<const Type extends ChannelType = ChannelType>(
~
why am i getting typings error, even tho i already skibLibCheck on the ts config
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!{
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"target": "es2020",
"module": "es2020",
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"strictNullChecks": true,
"skipLibCheck": true,
"noImplicitAny": true,
"strict": true,
},
"include": [
"src"
],
"exclude": [
"./node_modules",
"./node_modules/*",
"./node_modules/@types/node/index.d.ts",
"node_modules","types","dist"
]
}
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
no damn way im too old that my typescript is outdated
damn it is lmao alright cheers
damn my TS is on 4.9.5