Found by a package-compilability probe: axios now compiles from real source but fails at runtime, and this
is the single blocker.
TypeError: Class extends value is not a constructor
It throws at axios's module-init time, so one of its extends targets is not resolving as a constructor.
Candidate sites in axios
AxiosError extends Error
CanceledError extends AxiosError
AxiosTransformStream extends stream.Transform
ZlibHeaderTransformStream extends stream.Transform
The native-builtin bases are the suspects — Error, or stream.Transform served through the
ext-streams/ext-http well-known wrapper dedup path. First step is to narrow which one, since that decides
whether this is new or a manifestation of existing work.
Likely neighbours — check before writing a fix
This cycle has produced a cluster of native-base heritage fixes, and this may be one of them seen from axios's
angle:
If #10636 or #10649 already fixes it once landed, close this and say so rather than duplicating.
Probe harness: perrymaster, /root/claude-pkgaudit-measure/pkgtest/axios_test.ts.
Found by a package-compilability probe:
axiosnow compiles from real source but fails at runtime, and thisis the single blocker.
It throws at axios's module-init time, so one of its
extendstargets is not resolving as a constructor.Candidate sites in axios
AxiosError extends ErrorCanceledError extends AxiosErrorAxiosTransformStream extends stream.TransformZlibHeaderTransformStream extends stream.TransformThe native-builtin bases are the suspects —
Error, orstream.Transformserved through theext-streams/ext-httpwell-known wrapper dedup path. First step is to narrow which one, since that decideswhether this is new or a manifestation of existing work.
Likely neighbours — check before writing a fix
This cycle has produced a cluster of native-base heritage fixes, and this may be one of them seen from axios's
angle:
Fixes #10448) —node:streamsuper()via any bound-export heritage shape.util.inherits+Base.call(this),setPrototypeOforclass extends ServerResponsehave no setHeader/end/push (light-my-request / fastifyinject()never settles) #10454 —stream.Readable/http.ServerResponsehave empty prototypes; a WIP fix there was found to onlyhalf-work, with
ServerResponsestill entirely broken (see that issue's comment).super(), includingErrorsubclasses.extendsidentifier looks locally shadowed, which inside aCommonJS wrapper is every
const { X } = require(...). axios is CommonJS, so this one is a strong candidate.If #10636 or #10649 already fixes it once landed, close this and say so rather than duplicating.
Probe harness: perrymaster,
/root/claude-pkgaudit-measure/pkgtest/axios_test.ts.