Cannot Find Module Error

everytime i run node register-commands.js in the terminal, it shows an error, here's a screenshot
No description
19 Replies
d.js toolkit
d.js toolkit4mo ago
tim
timOP4mo ago
this discord.js version runs 14.22.0 and a node.js version runs v22.18.20
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
tim
timOP4mo ago
yeah i know
tim
timOP4mo ago
No description
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
tim
timOP4mo ago
i forgot to change it
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
tim
timOP4mo ago
i will do deploy-commands.js
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
tim
timOP4mo ago
it worked
Amgelo
Amgelo4mo ago
why are you importing your deploy script anyways?
tim
timOP4mo ago
i forgot the wrong file
Amgelo
Amgelo4mo ago
it's not recommended to run it on every start if that's what you want
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
monbrey
monbrey4mo ago
That's not an import, node throws the same error if you directly run a file that isn't there
Amgelo
Amgelo4mo ago
ah, I see
tim
timOP4mo ago
can i solve this issue now? ok then
d.js toolkit
d.js toolkit4mo ago
The thread owner has marked this issue as solved.

Did you find this page helpful?