Skip to content

Don't use/depend on DOM types #2539

@unnoq

Description

@unnoq

Description

packages/hey-api/tests/client/client/client.gen.ts(206,28): error TS2304: Cannot find name 'BodyInit'.
 ELIFECYCLE  Command failed with exit code 2.
Error: Process completed with exit code 2.

The problem is that the BodyInit type is not available in Node.js 22.x

Reproducible example or configuration

unnoq/orpc#871

pnpm i
pnpm type:check

OpenAPI specification (optional)

No response

System information (optional)

No response

Metadata

Metadata

Assignees

Labels

bug 🔥Something isn't workingclientClient package relatedneeds info ⏳Further information is requiredprioritized 🚚This issue has been prioritized and will be worked on soon

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions