You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=> ERROR [backend 9/9] RUN pnpm build 2.2s
------
> [backend 9/9] RUN pnpm build:
0.449
0.449 > chatgpt-web-service@1.0.0 build /app
0.449 > pnpm clean && tsc && pnpm copy
0.449
0.750
0.750 > chatgpt-web-service@1.0.0 clean /app
0.750 > rimraf build
0.750
2.065 src/chatgpt/index.ts(264,5): error TS2322: Type '(url: string | URL | Request, options: RequestInit) => Promise<Response>' is not assignable to type '(input: string | URL | Request, init?: RequestInit) => Promise<Response>'.
2.065 Type 'Promise<import("/app/node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/@types/index").Response>' is not assignable to type 'Promise<Response>'.
2.065 Type 'import("/app/node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/@types/index").Response' is not assignable to type 'Response'.
2.065 Types of property 'headers' are incompatible.
2.065 Property 'getSetCookie' is missing in type 'import("/app/node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/@types/index").Headers' but required in type 'import("/app/node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch").Headers'.
2.065 src/chatgpt/index.ts(265,20): error TS2345: Argument of type 'string | URL | Request' is not assignable to parameter of type 'URL | RequestInfo'.
2.065 Type 'Request' is not assignable to type 'URL | RequestInfo'.
2.065 Type 'Request' is missing the following properties from type 'Request': referrer, size, buffer
2.065 src/chatgpt/index.ts(273,9): error TS2322: Type '(url: string | URL | Request, options: RequestInit) => Promise<Response>' is not assignable to type '(input: string | URL | Request, init?: RequestInit) => Promise<Response>'.
2.065 Type 'Promise<import("/app/node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/@types/index").Response>' is not assignable to type 'Promise<Response>'.
2.065 src/chatgpt/index.ts(274,24): error TS2345: Argument of type 'string | URL | Request' is not assignable to parameter of type 'URL | RequestInfo'.
2.099 ELIFECYCLE Command failed with exit code 2.
------
Dockerfile:41
--------------------
39 | COPY /service /app
40 |
41 | >>> RUN pnpm build
42 |
43 | # service
--------------------
ERROR: failed to solve: process "/bin/sh -c pnpm build" did not complete successfully: exit code: 2
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: