giorgi-o / SkinPeek

Awesome Valorant Discord bot to see your daily shop, night market, battlepass progression, and much more
GNU General Public License v3.0
210 stars 87 forks source link

Error: Cannot find module 'uuid' #39

Closed patriq closed 2 years ago

patriq commented 2 years ago

Tried using the docker image ghcr.io/giorgi-o/skinpeek/skinpeek using the docker-compose file in the repository, and it looks like node-cron needs uuid but can't find it?


node:internal/modules/cjs/loader:933

  const err = new Error(message);

              ^

Error: Cannot find module 'uuid'

Require stack:

- /usr/app/node_modules/node-cron/src/scheduled-task.js

- /usr/app/node_modules/node-cron/src/node-cron.js

    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)

    at Function.Module._load (node:internal/modules/cjs/loader:778:27)

    at Module.require (node:internal/modules/cjs/loader:999:19)

    at require (node:internal/modules/cjs/helpers:102:18)

    at Object.<anonymous> (/usr/app/node_modules/node-cron/src/scheduled-task.js:6:14)

    at Module._compile (node:internal/modules/cjs/loader:1099:14)

    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

    at Module.load (node:internal/modules/cjs/loader:975:32)

    at Function.Module._load (node:internal/modules/cjs/loader:822:12)

    at Module.require (node:internal/modules/cjs/loader:999:19) {

  code: 'MODULE_NOT_FOUND',

  requireStack: [

    '/usr/app/node_modules/node-cron/src/scheduled-task.js',

    '/usr/app/node_modules/node-cron/src/node-cron.js'

  ]

}

Node.js v17.9.1
patriq commented 2 years ago

Yeah seems like node-cron is having the same issue: https://github.com/node-cron/node-cron/issues/355

patriq commented 2 years ago

Could you maybe fix the node-cron to 3.0.0?

giorgi-o commented 2 years ago

yup! fixed in https://github.com/giorgi-o/SkinPeek/commit/17e96d1c834bc7109d49101917b341a1e4225e0f.