SpikeHD / AmazonMonitor

Amazon price checker, item monitor and stock monitor, all shoved into a Discord bot
GNU General Public License v3.0
221 stars 38 forks source link

[BUG] #87

Closed lordcharles2001 closed 2 years ago

lordcharles2001 commented 2 years ago

still getting this error when i have renamed to config.json

Error: ENOENT: no such file or directory, open './config.json'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at file:///C:/Users/Charles/desktop/AmazonMonitor-master/common/debug.js:4:41
    at ModuleJob.run (node:internal/modules/esm/module_job:185:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
    at async loadESM (node:internal/process/esm_loader:88:5)
    at async handleMainPromise (node:internal/modules/run_main:65:12) {
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: './config.json'
SpikeHD commented 2 years ago

Then you do not have it in the right spot, or it is named improperly.