I am receiving this error, any idea what might be wrong? the code is very close to what Readme in dockerode suggest for buildImage(...).
/Users/sri/projects/APIINF/node_modules/docker-modem/lib/modem.js:480
streama.on('data', onStreamEvent);
^
TypeError: Cannot read properties of undefined (reading 'on')
at Modem.followProgress (/Users/sri/projects/APIINF/node_modules/docker-modem/lib/modem.js:480:11)
at /Users/sri/projects/APIINF/dockerode.js:63:18
at new Promise (<anonymous>)
at run (/Users/sri/projects/APIINF/dockerode.js:45:9)
at Object.<anonymous> (/Users/sri/projects/APIINF/dockerode.js:82:1)
at Module._compile (node:internal/modules/cjs/loader:1455:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1534:10)
at Module.load (node:internal/modules/cjs/loader:1265:32)
at Module._load (node:internal/modules/cjs/loader:1081:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:187:14)
Node.js v22.0.0
I am receiving this error, any idea what might be wrong? the code is very close to what Readme in dockerode suggest for
buildImage(...)
.