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

ReferenceError: extend is not defined #787

Closed
Meierschlumpf opened this issue Jan 17, 2025 · 1 comment
Closed

ReferenceError: extend is not defined #787

Meierschlumpf opened this issue Jan 17, 2025 · 1 comment

Comments

@Meierschlumpf
Copy link

Hey I've got an issue with the latest version of dockerode 4.0.3. In 4.0.2 my application works as expected and runs, but in 4.0.3 it throws the following error:

ReferenceError: extend is not defined
  at ../../packages/api/node_modules/dockerode/lib/docker.js (/app/apps/websocket/wssServer.cjs:476359:12)
  at __require (/app/apps/websocket/wssServer.cjs:18:51)
  at Object.<anonymous> (/app/apps/websocket/wssServer.cjs:518958:32)
  at Module._compile (node:internal/modules/cjs/loader:1562:14)
  at Object..js (node:internal/modules/cjs/loader:1699:10)
  at Module.load (node:internal/modules/cjs/loader:1313:32)
  at Function._load (node:internal/modules/cjs/loader:1123:12)
  at TracingChannel.traceSync (node:diagnostics_channel:322:14)
  at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
  at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)

The wssServer.cjs is build using the following command:

esbuild src/main.ts --bundle --platform=node --outfile=wssServer.cjs --external:bcrypt --external:@opentelemetry/api --external:cpu-features --loader:.html=text --loader:.scss=text --loader:.node=text

@apocas
Copy link
Owner

apocas commented Jan 17, 2025

Published v4.0.4 that fixes this.
#784

@apocas apocas closed this as completed Jan 17, 2025
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

2 participants