Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build 报错 #587

Open
SimpleMonitor opened this issue Mar 21, 2025 · 0 comments
Open

docker build 报错 #587

SimpleMonitor opened this issue Mar 21, 2025 · 0 comments

Comments

@SimpleMonitor
Copy link

 => ERROR [backend 9/9] RUN pnpm build                                                                                                                                                         2.2s
------                                                                                                                                                                                              
 > [backend 9/9] RUN pnpm build:                                                                                                                                                                    
0.449                                                                                                                                                                                               
0.449 > [email protected] build /app                                                                                                                                                        
0.449 > pnpm clean && tsc && pnpm copy                                                                                                                                                              
0.449                                                                                                                                                                                               
0.750                                                                                                                                                                                               
0.750 > [email protected] 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/[email protected]/node_modules/node-fetch/@types/index").Response>' is not assignable to type 'Promise<Response>'.
2.065     Type 'import("/app/node_modules/.pnpm/[email protected]/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/[email protected]/node_modules/node-fetch/@types/index").Headers' but required in type 'import("/app/node_modules/.pnpm/[email protected]/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/[email protected]/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant