Component Type Error (TS)
I posted this in the regular help channel but it got buried without a lot of help.
I'm running into an odd ts issue with components
its worked fine with regular js, even with ts-check turned on. the code doesn't seem to be out of the ordinary. I'm on 14.18.0 right now
any clues?
TS version 5.8.3, also tried with 5.4
7 Replies
DJS version 14.18.0
Node version 20.13.1
Casting the payload to
Discord.InteractionEditReplyOptions for interaction replies does work, but it's hacky and I'd rather not have toHow are you importing the builders
import Discord, { ButtonBuilder, ActionRowBuilder } from "discord.js";
Should I be directly importing from the builder package?did you install builders separately at one point?
no, you should always be importing from djs
Nah it's a clean install
I had done that to test stuff after my previous message, but I removed it shortly after. Not sure why it's still showing up there.
I guess it was a weird quirk with bun's package manager? I uninstalled DJS and everything related to it and just installed my command interface that has a peer dependency for DJS and it worked. thanks for helping me out!
The thread owner has marked this issue as solved.