TypeError: this.modem.Promise is not a constructor
at Container.stop (/home/mirkuz/dev/tmp/node_modules/dockerode/lib/container.js:603:12)
at /home/mirkuz/dev/tmp/app.js:239:10
at Array.forEach ()
at Object.callback (/home/mirkuz/dev/tmp/app.js:233:14)
at /home/mirkuz/dev/tmp/node_modules/dockerode/lib/docker.js:432:12
at Modem.buildPayload (/home/mirkuz/dev/tmp/node_modules/docker-modem/lib/modem.js:398:7)
at IncomingMessage. (/home/mirkuz/dev/tmp/node_modules/docker-modem/lib/modem.js:346:16)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Hello, I'm trying to stop a container but I receive this error. I can't understand what I'm doing wrong. Someone can help me?
TypeError: this.modem.Promise is not a constructor at Container.stop (/home/mirkuz/dev/tmp/node_modules/dockerode/lib/container.js:603:12) at /home/mirkuz/dev/tmp/app.js:239:10 at Array.forEach ()
at Object.callback (/home/mirkuz/dev/tmp/app.js:233:14)
at /home/mirkuz/dev/tmp/node_modules/dockerode/lib/docker.js:432:12
at Modem.buildPayload (/home/mirkuz/dev/tmp/node_modules/docker-modem/lib/modem.js:398:7)
at IncomingMessage. (/home/mirkuz/dev/tmp/node_modules/docker-modem/lib/modem.js:346:16)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)