Discord Bot Maker

Discord Bot Maker

View Stats:
maiki797 Feb 13, 2022 @ 9:02am
error MODULE_NOT_FOUND
I updated to beta 2.0 recently I don't know if this was the trigger for everything to start, because when I updated it started giving this error that the modules are not being found, I can say that the modules are installed correctly, and the error persists if I try to drop the node bot.js in cmd, is there a way to solve this?, or did it just happen to me?

error code:
Bot has started at Sunday, Feb 13, 2022, 01:49:18 PM
? Error: Cannot find module 'ytdl-core'
? Require stack:
? - C:\Esquizo-bot\bot.js
? at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
? at Function.Module._load (node:internal/modules/cjs/loader:778:27)
? at Module.require (node:internal/modules/cjs/loader:999:19)
? at require (node:internal/modules/cjs/helpers:102:18)
? at Object. (C:\Esquizo-bot\bot.js:2848:16)
? at Module._compile (node:internal/modules/cjs/loader:1097:14)
? at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
? at Module.load (node:internal/modules/cjs/loader:975:32)
? at Function.Module._load (node:internal/modules/cjs/loader:822:12)
? at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
? code: 'MODULE_NOT_FOUND',
? requireStack: [ 'C:\\Esquizo-bot\\bot.js' ]
? }
?
? Error: Cannot find module '@discordjs/voice'
? Require stack:
? - C:\Esquizo-bot\bot.js
? at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
? at Function.Module._load (node:internal/modules/cjs/loader:778:27)
? at Module.require (node:internal/modules/cjs/loader:999:19)
? at require (node:internal/modules/cjs/helpers:102:18)
? at Object. (C:\Esquizo-bot\bot.js:2856:17)
? at Module._compile (node:internal/modules/cjs/loader:1097:14)
? at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
? at Module.load (node:internal/modules/cjs/loader:975:32)
? at Function.Module._load (node:internal/modules/cjs/loader:822:12)
? at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
? code: 'MODULE_NOT_FOUND',
? requireStack: [ 'C:\\Esquizo-bot\\bot.js' ]
? }
?
? Error: Cannot find module 'youtube-dl-exec'
? Require stack:
? - C:\Esquizo-bot\bot.js
? at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
? at Function.Module._load (node:internal/modules/cjs/loader:778:27)
? at Module.require (node:internal/modules/cjs/loader:999:19)
? at require (node:internal/modules/cjs/helpers:102:18)
? at Object. (C:\Esquizo-bot\bot.js:2864:19)
? at Module._compile (node:internal/modules/cjs/loader:1097:14)
? at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
? at Module.load (node:internal/modules/cjs/loader:975:32)
? at Function.Module._load (node:internal/modules/cjs/loader:822:12)
? at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
? code: 'MODULE_NOT_FOUND',
? requireStack: [ 'C:\\Esquizo-bot\\bot.js' ]
? }
?

13/02/2022 20:42
Well here's an update from the article, I tried reinstalling node js but it didn't help so I dropped a random install of the 3 or 4 modules that weren't being recognized, I think it was ytdl-core I gave npm i ytdl -core so I restart the app, the not recognizing modules error seems to have stopped but now it doesn't seem to be recognizing my commands
I enter a chat I give the prefix plus the command, but nothing happens, I think maybe I'm close to the solution.

14/02/2022 15:14 I recreated a new project but this time the initial error came back, I'm starting to get angry, will this ever work perfectly?
Last edited by maiki797; Feb 14, 2022 @ 10:15am
< >
Showing 1-2 of 2 comments
Dutchxarms Apr 25, 2022 @ 9:01am 
just install them
maiki797 Apr 25, 2022 @ 10:54am 
Originally posted by Dutchxarms:
just install them
nice
< >
Showing 1-2 of 2 comments
Per page: 1530 50