Error when running docker: Cannot find module 'lodash'
MiracleXYZ opened this issue · 1 comments
MiracleXYZ commented
After running the following command
docker run \
--rm -it --name firefly-bot \
--env-file .env \
cyxou/firefly-iii-telegram-bot:latest
(there should be single -
before it
by the way)
I got this error message:
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'lodash'
Require stack:
- /home/node/app/dist/composers/transactions/add-transaction.js
- /home/node/app/dist/index.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:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (/home/node/app/dist/composers/transactions/add-transaction.js:24:18)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153: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) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/node/app/dist/composers/transactions/add-transaction.js',
'/home/node/app/dist/index.js'
]
}