Skip to content

refactor(http, cloudflare): use unenv/ imports inside node:http #1101

refactor(http, cloudflare): use unenv/ imports inside node:http

refactor(http, cloudflare): use unenv/ imports inside node:http #1101

Triggered via pull request December 3, 2024 16:11
Status Failure
Total duration 50s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 1 warning
ci: src/runtime/fetch/call.ts#L25
Argument of type 'import("/home/runner/work/unenv/unenv/src/runtime/node/http/internal/request").IncomingMessage' is not assignable to parameter of type 'import("http").IncomingMessage'.
ci: src/runtime/fetch/call.ts#L75
Property 'destroy' does not exist on type 'IncomingMessage'.
ci: src/runtime/fetch/call.ts#L76
Property 'destroy' does not exist on type 'ServerResponse'.
ci: src/runtime/node/http/internal/request.ts#L4
Cannot find module 'unenv/runtime/node/stream/index' or its corresponding type declarations.
ci: src/runtime/node/http/internal/request.ts#L10
Class 'import("/home/runner/work/unenv/unenv/src/runtime/node/http/internal/request").IncomingMessage' incorrectly implements class 'import("http").IncomingMessage'. Did you mean to extend 'import("http").IncomingMessage' and inherit its members as a subclass?
ci: src/runtime/node/http/internal/response.ts#L5
Cannot find module 'unenv/runtime/node/stream/index' or its corresponding type declarations.
ci: src/runtime/node/http/internal/response.ts#L10
Class 'ServerResponse' incorrectly implements class 'ServerResponse<IncomingMessage>'. Did you mean to extend 'ServerResponse<IncomingMessage>' and inherit its members as a subclass?
ci: src/runtime/node/http/internal/response.ts#L41
Property 'emit' does not exist on type 'ServerResponse'.
ci
Process completed with exit code 2.
ci
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636