Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'name')

Hello, why is this happening? i don't understand.
3 Replies
d.js toolkit
d.js toolkit•15mo 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!
Slainix
Slainix•15mo ago
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'name')
at <anonymous> (c:\Users\user\Documents\bot\index.js:16:38)
at Module._compile (internal/modules/cjs/loader:1256:14)
at Module._extensions..js (internal/modules/cjs/loader:1310:10)
at Module.load (internal/modules/cjs/loader:1119:32)
at Module._load (internal/modules/cjs/loader:960:12)
at executeUserEntryPoint (internal/modules/run_main:81:12)
at <anonymous> (internal/main/run_main_module:23:47)
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'name')
at <anonymous> (c:\Users\user\Documents\bot\index.js:16:38)
at Module._compile (internal/modules/cjs/loader:1256:14)
at Module._extensions..js (internal/modules/cjs/loader:1310:10)
at Module.load (internal/modules/cjs/loader:1119:32)
at Module._load (internal/modules/cjs/loader:960:12)
at executeUserEntryPoint (internal/modules/run_main:81:12)
at <anonymous> (internal/main/run_main_module:23:47)
i'm using discord.js v12, and latest node version. i want to make the index file read a folder to find others commands in a folder or in subfolder
treble/luna
treble/luna•15mo ago
We do not support v12 anymore, upgrade to v14 (or at least v13)
Want results from more Discord servers?
Add your server