ZODIAC [DGC]
DIAdiscord.js - Imagine an app
•Created by ZODIAC [DGC] on 9/26/2023 in #djs-questions
can i get the solution for this
node:internal/errors:496
ErrorCaptureStackTrace(err);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "emitter" argument must be an instance of EventEmitter. Received type string ('ready')
at new NodeError (node:internal/errors:405:5)
at eventTargetAgnosticAddListener (node:events:1032:11)
at node:events:987:5
at new Promise (<anonymous>)
at Client.once (node:events:967:10)
at Object.<anonymous> (C:\Users\Nishad\Desktop\Slash Commands\index.js:6:8)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12) {
code: 'ERR_INVALID_ARG_TYPE'
}
Node.js v20.7.0
49 replies