Closed wajxyz closed 1 year ago
Hello, did you create the config.js file from the config.default.js file?
I followed the instructions and it created a config.js file in the /config/ folder. What i've done instead is copied this folder into /dist/ as following the error code and it works now, I hope. I've linked my email and am connected so just waiting for a result.
Hi, I've followed the instructions on the page but it's not working. Please help.
yarn run v1.22.19P4:~/toogoodtogo-bot$ yarn start $ node ./dist/src/index.js node:internal/errors:477 ErrorCaptureStackTrace(err); ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/waj/toogoodtogo-bot/dist/config/config.js' imported from /home/waj/toogoodtogo-bot/dist/src/core/index.js at new NodeError (node:internal/errors:387:5) at finalizeResolution (node:internal/modules/esm/resolve:429:11) at moduleResolve (node:internal/modules/esm/resolve:1006:10) at defaultResolve (node:internal/modules/esm/resolve:1214:11) at nextResolve (node:internal/modules/esm/loader:165:28) at ESMLoader.resolve (node:internal/modules/esm/loader:844:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:431:18) at ModuleWrap. (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
waj@DESKTOP-FL4KEP4:~/toogoodtogo-bot$