Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Error How to Fix it #35

Open
Nikolai980 opened this issue Jun 19, 2022 · 1 comment
Open

Error How to Fix it #35

Nikolai980 opened this issue Jun 19, 2022 · 1 comment

Comments

@Nikolai980
Copy link

npm run start

discord-js-bot@4.1.0 start /home/runner/automod-bot
nodemon bot.js

[nodemon] 2.0.15
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node bot.js
node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module '/home/runner/automod-bot/src/data.json'
Require stack:

  • /home/runner/automod-bot/src/utils/miscUtils.js
  • /home/runner/automod-bot/src/structures/Command.js
  • /home/runner/automod-bot/src/structures/BotClient.js
  • /home/runner/automod-bot/src/structures/index.js
  • /home/runner/automod-bot/bot.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._resolveFilename (/home/runner/automod-bot/node_modules/module-alias/index.js:49:29)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/home/runner/automod-bot/src/utils/miscUtils.js:2:14)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/home/runner/automod-bot/src/structures/Command.js:4:24)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/runner/automod-bot/src/utils/miscUtils.js',
    '/home/runner/automod-bot/src/structures/Command.js',
    '/home/runner/automod-bot/src/structures/BotClient.js',
    '/home/runner/automod-bot/src/structures/index.js',
    '/home/runner/automod-bot/bot.js'
    ]
    }
    [nodemon] app crashed - waiting for file changes before starting...

My nodejs version its 1.16 and i do npm install and .env

@mi6i
Copy link

mi6i commented Jun 20, 2022

i have this error too i think he just forgot to put that

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants