#eventFolder errors:

11 messages · Page 1 of 1 (latest)

carmine oysterBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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 staff
light karma
#

you named the same variable twice in your for loop

brave igloo
#

Wait, my bad wrong error

#
                              ^

ReferenceError: eventFolders is not defined
    at module.exports (C:\Users\hitle\OneDrive\Desktop\discord_bot\src\handlers\eventHandler.js:8:31)
    at Object.<anonymous> (C:\Users\hitle\OneDrive\Desktop\discord_bot\src\index.js:14:1)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
    at node:internal/main/run_main_module:28:49```
#

This is the error

light karma
#

You indeed do not define eventFolders

#

This also isnt djs related, rather basic js

brave igloo
#

i'm quite new to JS and TS

light karma
#

I'd recommend checking out #resources first and learn the basics of js