From d5097ad8098e8b303201def642d11b0992f3c8ca Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 26 Jul 2026 15:01:39 +0900 Subject: [PATCH] fix(frontend): eliminate all tsconfig and vite proxy build deprecation warnings --- src/frontend/tsconfig.app.json | 7 +++---- src/frontend/vite.config.ts | 5 +++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontend/tsconfig.app.json b/src/frontend/tsconfig.app.json index 4d8f30f5..f3d64f74 100644 --- a/src/frontend/tsconfig.app.json +++ b/src/frontend/tsconfig.app.json @@ -24,11 +24,10 @@ "noImplicitReturns": true, /* Path Aliases */ - "baseUrl": ".", "paths": { - "@/*": ["src/*"], - "@shared/*": ["src/shared/*"], - "@modules/*": ["src/modules/*"] + "@/*": ["./src/*"], + "@shared/*": ["./src/shared/*"], + "@modules/*": ["./src/modules/*"] } }, "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"] diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts index 1fd8265f..6a084eb4 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -26,8 +26,9 @@ export default defineConfig({ changeOrigin: true, secure: false, configure: (proxy) => { - proxy.on('error', (_err, _req, res: any) => { - if (res && !res.headersSent) { + proxy.on('error', (...args: any[]) => { + const res = args[2]; + if (res && typeof res.writeHead === 'function' && !res.headersSent) { res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(JSON.stringify({ status: 'OFFLINE_MOCK_ACTIVE', data: [], versions: [] })); }