apocas / docker-modem

Docker Remote API network stack driver.
Apache License 2.0
234 stars 112 forks source link

Error - streama.on('data', onStreamEvent); #175

Open akanaujiya opened 5 months ago

akanaujiya commented 5 months ago

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