VSCode inconvinience
My code runs fine with tsc and with ts-node but when i start vscode it starts to generate errors and idk why is that.

20 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!DJS: v14.16
Node: v22.11
In TypeScript the
ActionRowBuilder
class has a generic type parameter that specifies the type of component the action row holds:


ik that
also if that was the case it will not run with ts-node, do you even read what i wrote 😮💨
these methods should be existing in the djs types idk if the version is fucked up or what


I think you you should reinstall
discord.js
maybe you had a duplicate package
My bad i didn't read the issue properly

its the same version
ok yeah but the most things had rly gone wrong


first time in my life seeing errors like this
:typealias: ModalActionRowComponentBuilder
[email protected]
The builders that may be used within an action row for modals.xd
a lot of times 😄

discord.js includes multiple sub-packages, installing these separately can mess with internal code:
lemme try
nope
didnt work
discord.js
ButtonStyle
ComponentType
all red
;2
mhm
i could try reinstalling my vscode but i dont think that would help
whats the version ot typescript in the latest release of djs?
I don't think so. I have TS version 5.7.2 as well and didn't face these problems
wow
now it works
whats wrong with pnpm xd?
djs uses pnpm and pnpm workspaces when i checked the repo
thats wild
nope
its not working with pnpm
i tried
reinstalling the node modules with pnpm a couple times
not working
now u told me to reinstall with npm
everything works
no
i just had pnpm lock
i think its because of pnpm hoisting
i deleted pnpm lock
node modules
when
npm i
yeah
i changed to bun
idk why pnpm is so buggy