Error that I cannot solve

Basically I got an unexpected error. Codes: index.js https://sourceb.in/soOMadCNaf deploy-commands.js https://sourceb.in/x3uEymAmqo commands/weather.js https://sourceb.in/wNcJ0oQ7es Error: node:internal/modules/cjs/loader:1222 throw err; ^ Error: Cannot find module 'commands\weather.js' Require stack: - D:\atermibot\deploy-commands.js at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15) at Module._load (node:internal/modules/cjs/loader:1045:27) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at wrapModuleLoad (node:internal/modules/cjs/loader:215:24) at Module.require (node:internal/modules/cjs/loader:1304:12) at require (node:internal/modules/helpers:123:16) at Object.<anonymous> (D:\atermibot\deploy-commands.js:30:19) at Module._compile (node:internal/modules/cjs/loader:1504:14) at Module._extensions..js (node:internal/modules/cjs/loader:1588:10) at Module.load (node:internal/modules/cjs/loader:1282:32) { code: 'MODULE_NOT_FOUND', requireStack: [ 'D:\atermibot\deploy-commands.js' ] } Node.js v22.5.1
4 Replies
d.js toolkit
d.js toolkit5mo 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
BMmarci1234
BMmarci1234OP5mo ago
Anybody can help
Mark
Mark5mo ago
Your path is incorrect, where you define command on line 30
BMmarci1234
BMmarci1234OP5mo ago
okay i got it now
Want results from more Discord servers?
Add your server