Discord,error,module

Error: Cannot find module ‘./auth.json’
Require stack:

  • C:\Users\kompic\Desktop\botss\bot.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object. (C:\Users\kompic\Desktop\botss\bot.js:3:12)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js
    :71:12) {
    code: ‘MODULE_NOT_FOUND’,
    requireStack: [ ‘C:\Users\kompic\Desktop\botss\bot.js’ ]

The file auth.json cannot be found.

3 Likes

What the means is that you actually have to make an auth.js file.

i have file

Can you share a snippet of your code (in backticks)?

Or can you send a picture of all the files in your Glitch project?