Cannot run deployment scripts
Hi, I'm feeling really dumb right now. I haven't touched my code in a couple months and I'm finally back at it but I'm facing some issue. I'm using VSCode and used to be able to simply press F5 while editing a file (for example : deploy-commands.js) to run it. Now it automatically runs the index.js of my project... I need to deploy my commands though. How come? Am I tweaking?
2 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!
- ✅
Marked as resolved by OPnode :
v16.16.0
discord.js : 14.13.0
(please ping me if you're able to help, I won't be checking the channel all the time)
never touched the launch.json
, what should I edit?
oh I see this but how come I didn't have to bother with that before?
no, didn't change anything... Anyway isn't it weird not to be able to run a single file with F5?
wow I really feel dumb rn, as a CS student who haven't coded in months
ah, alright, weird that it wasn't doing that before then
now I need to learn about launch configurations I guess
sorry to bother you but how exactly am I supposed to achieve that?
Sure, thanks for the help though!