discord.js won't play nice with ES:LINT

./node_modules/discord.js/typings/index.d.ts:1301:21
Type error: Type parameter declaration expected.

1299 | * If the user were to pass only one of those channel types, the `Extract<>` would resolve to `never`.
1300 | */
> 1301 | public getChannel<const Type extends ChannelType = ChannelType>(
| ^
1302 | name: string,
1303 | required: true,
1304 | channelTypes?: readonly Type[],
./node_modules/discord.js/typings/index.d.ts:1301:21
Type error: Type parameter declaration expected.

1299 | * If the user were to pass only one of those channel types, the `Extract<>` would resolve to `never`.
1300 | */
> 1301 | public getChannel<const Type extends ChannelType = ChannelType>(
| ^
1302 | name: string,
1303 | required: true,
1304 | channelTypes?: readonly Type[],
29 Replies
d.js toolkit
d.js toolkit2mo ago
- 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! - Marked as resolved by staff
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
14.17.1 Yes, but then I realised posting it here would be a better idea as its a more complicated issue.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
. Anyway, its just not working Is there anything I could do to fix it?
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
Using a developer compiled version works, but attempting to build it won't. I suspect its an issue with the typescript package.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
4.x.x 4.3.3
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
4.8.3 I mean the last update to this code was in 2022
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
So do I uninstall the NPM package?
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
Oh.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
I mean when I downloaded this I only updated noblox.js, prismaclient and prisma Yeah, I just realised that.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
Should I be updating my discord.js too? its at 14.7.1 Its a legacy software.
s3ntrical
s3ntricalOP2mo ago
GitHub
GitHub - tovyblox/tovy: The next iteration of Tovy
The next iteration of Tovy. Contribute to tovyblox/tovy development by creating an account on GitHub.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
No. I've only modified the discord parts. But the es:lint error is related to the package.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
Update all of them?
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
Then again, all the packages keep conflicting with eachother. Thanks for the help, Jo! @jo 🌈 Oh wow, every package error is gone now. So typescript being outdated would be the root cause of all my issues.\
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
s3ntrical
s3ntricalOP2mo ago
ABSOLUTE LIFESAVER 🙏
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?