Catharsis
Catharsis
DIAdiscord.js - Imagine an app
Created by Catharsis on 1/26/2024 in #djs-questions
MODULE_NOT_FOUND
Hello! I encountered a problem when trying to run my Discord.js bot. I don't know why I keep getting this error even though I upgraded the version of Discord.js (14.11.0 -> latest version). I also tried "clean install" by removing the node_modules dir and reinstalling all the dependencies. What should I do to fix this error? Here's the error message:
node index.js
node:internal/modules/cjs/loader:598
throw e;
^

Error: Cannot find module '\node_modules\@vladfrangu\async_event_emitter\dist\index.js'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1181:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1169:15)
at resolveExports (node:internal/modules/cjs/loader:591:14)
at Module._findPath (node:internal/modules/cjs/loader:668:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (\node_modules\@discordjs\rest\dist\index.js:649:34)
at Module._compile (node:internal/modules/cjs/loader:1376:14) {
code: 'MODULE_NOT_FOUND',
path: '\\node_modules\\@vladfrangu\\async_event_emitter\\package.json'
}

Node.js v20.11.0
node index.js
node:internal/modules/cjs/loader:598
throw e;
^

Error: Cannot find module '\node_modules\@vladfrangu\async_event_emitter\dist\index.js'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1181:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1169:15)
at resolveExports (node:internal/modules/cjs/loader:591:14)
at Module._findPath (node:internal/modules/cjs/loader:668:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (\node_modules\@discordjs\rest\dist\index.js:649:34)
at Module._compile (node:internal/modules/cjs/loader:1376:14) {
code: 'MODULE_NOT_FOUND',
path: '\\node_modules\\@vladfrangu\\async_event_emitter\\package.json'
}

Node.js v20.11.0
PS I removed the actual path of my workspace for security purposes
8 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 2/28/2023 in #djs-questions
Cannot read properties of undefined (reading 'reply')
4 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 11/7/2022 in #djs-voice
A function that can show bot ping connection (Voice Channel)
Is there a way to create a bot command that can show us the bot ping connection when the bot is in a voice channel? I don't ask or mention about Websocket or API latency.
18 replies