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
d.js toolkit
d.js toolkit14mo 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 OP
RAH3RI
RAH3RIOP14mo ago
node : 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
"program": "${workspaceFolder}\\index.js"
"program": "${workspaceFolder}\\index.js"
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!
Want results from more Discord servers?
Add your server