WordleEdit icon indicating copy to clipboard operation
WordleEdit copied to clipboard

TypeError: Cannot read properties of undefined (reading 'FLAGS')

Open S0FLGotTaken opened this issue 3 years ago • 1 comments

TypeError: Cannot read properties of undefined (reading 'FLAGS') at Object. (D:\Meus Documentos\Downloads\WordleEdit-main\WordleEdit-main\main.js:14:10) at Module._compile (node:internal/modules/cjs/loader:1126:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) at Module.load (node:internal/modules/cjs/loader:1004:32) at Function.Module._load (node:internal/modules/cjs/loader:839:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 ^^ Got this error message

I did: Downloaded files installed node.js 16.17.0 npm init npm install discord.js node main.js created bot invited bot put token and got error

searched, and apparently code for discord.js requirement is old replaced what StackOverflow issue said didn't work still

S0FLGotTaken avatar Aug 29 '22 03:08 S0FLGotTaken

Hey, I was having your problem but I found out the bot is using a old discord.js, so I downloaded the version and it started working. Here's how I did it. Go to node_modules folder delete discord.js go into cmd make sure you're in the bot folder type npm install [email protected] and it should work when you type node . or node main.js

Mineraftchulo avatar Sep 04 '22 20:09 Mineraftchulo