Achaak / toogoodtogo-bot

TooGooToGo-Bot is a tool designed to help you stay informed about the availability of your favorite stores on the Too Good To Go platform. It sends notifications, allowing you to quickly find and purchase food products before they disappear.
MIT License
61 stars 17 forks source link

cant start the program, command giving exit code 1. #20

Closed wajxyz closed 1 year ago

wajxyz commented 1 year ago

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$

Achaak commented 1 year ago

Hello, did you create the config.js file from the config.default.js file?

wajxyz commented 1 year ago

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.