Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akanaujiya opened this issue Jun 19, 2024 · 0 comments
Open

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

akanaujiya opened this issue Jun 19, 2024 · 0 comments

Comments

@akanaujiya
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant