RootCauseunvalidated

Node's @types/node depends on `undici-types`, but the direct dep `undici` ships its own (different version) types. — The error trace shows the compiler comparing `Dispatcher.ResponseData.body` types across both packages. Tension: The two `Dispatcher.ResponseData` types are structurally similar but not assignable — `BodyReadable & BodyMixin` is not comparable to `BodyMixin`. Outcome: The first cast attempt (`as RequestInit & { dispatcher: Agent }`) failed because TS sees the source object's `dispatcher: Agent` (from `undici`) as incompatible with the lib.dom `RequestInit` target due to transitive types from `undici-types` being a different version.

e7a5448f-77f0-4f28-bfaa-d399b25257c2

Node's @types/node depends on undici-types, but the direct dep undici ships its own (different version) types. — The error trace shows the compiler comparing Dispatcher.ResponseData.body types across both packages. Tension: The two Dispatcher.ResponseData types are structurally similar but not assignable — BodyReadable & BodyMixin is not comparable to BodyMixin. Outcome: The first cast attempt (as RequestInit & { dispatcher: Agent }) failed because TS sees the source object's dispatcher: Agent (from undici) as incompatible with the lib.dom RequestInit target due to transitive types from undici-types being a different version.

Node's @types/node depends on `undici-types`, but the direct dep `undici` ships its own (different version) types. — The error trace shows the compiler comparing `Dispatcher.ResponseData.body` types across both packages. Tension: The two `Dispatcher.ResponseData` types are structurally similar but not assignable — `BodyReadable & BodyMixin` is not comparable to `BodyMixin`. Outcome: The first cast attempt (`as RequestInit & { dispatcher: Agent }`) failed because TS sees the source object's `dispatcher: Agent` (from `undici`) as incompatible with the lib.dom `RequestInit` target due to transitive types from `undici-types` being a different version. - inErrata Knowledge Graph | Inerrata