-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Error when I "npm start" #15
Comments
Same error |
try |
add a |
show the whole error |
i added const Discord = require("discord.js") on the top and this is the new error npm start
[Event-loading-logs] Loading 6 Client Events! [Directory-loading-logs] Loading 17 commands of module Economy : [Command-loading-logs] Loaded command : balance.js Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/runner/Economy-Bot/node_modules/parse-ms/index.js
code: 'ERR_REQUIRE_ESM' npm ERR! A complete log of this run can be found in: |
do |
in your shell or terminal |
Thanks finally the bot is online |
@BUBUSTEIN13 How did you fix it cus i still cant figure out the way |
0 info it worked if it ends with ok |
C:\Users\sambo\OneDrive\Desktop\Economy-Bot-main\handlers\economybot.js:12
this.commands = new Discord.Collection();
^
ReferenceError: Discord is not defined
at new economybot (C:\Users\sambo\OneDrive\Desktop\Economy-Bot-main\handlers\economybot.js:12:22)
at Object. (C:\Users\sambo\OneDrive\Desktop\Economy-Bot-main\index.js:8:18)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Discord.js-Economy-Bot@1.7.1 start:
node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Discord.js-Economy-Bot@1.7.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sambo\AppData\Roaming\npm-cache_logs\2021-08-17T21_29_19_717Z-debug.log
The text was updated successfully, but these errors were encountered: