Skip to content

Getting Error when I "npm start" #15

@sam0oo7

Description

@sam0oo7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions