From 2147cddccfc7ac31f6e7af35ea36f71d0592be8a Mon Sep 17 00:00:00 2001 From: Kangyang Ji Date: Mon, 13 Apr 2026 16:39:49 +0100 Subject: [PATCH 1/2] fix: add outDir for tsconfig --- dashboard/tsconfig.json | 1 + dashboard/tsconfig.vite-config.json | 1 + 2 files changed, 2 insertions(+) diff --git a/dashboard/tsconfig.json b/dashboard/tsconfig.json index 7820a40b1c..605e28edc4 100644 --- a/dashboard/tsconfig.json +++ b/dashboard/tsconfig.json @@ -7,6 +7,7 @@ "paths": { "@/*": ["./src/*"] }, + "outDir": "dist", "allowJs": true }, diff --git a/dashboard/tsconfig.vite-config.json b/dashboard/tsconfig.vite-config.json index a3d4b21517..b4fc38e578 100644 --- a/dashboard/tsconfig.vite-config.json +++ b/dashboard/tsconfig.vite-config.json @@ -2,6 +2,7 @@ "extends": "@vue/tsconfig/tsconfig.json", "include": ["vite.config.*"], "compilerOptions": { + "outDir": "dist", "composite": true, "allowJs": true, "types": ["node"] From 958eee779236bfa89051278c694e2ec0d3618a2e Mon Sep 17 00:00:00 2001 From: Kangyang Ji Date: Mon, 13 Apr 2026 17:15:06 +0100 Subject: [PATCH 2/2] improve tsconfig options --- dashboard/tsconfig.json | 18 ++++++++++++++---- dashboard/tsconfig.vite-config.json | 3 +++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/dashboard/tsconfig.json b/dashboard/tsconfig.json index 605e28edc4..3c6be315b1 100644 --- a/dashboard/tsconfig.json +++ b/dashboard/tsconfig.json @@ -1,14 +1,24 @@ { "extends": "@vue/tsconfig/tsconfig.dom.json", - "include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/types/.d.ts"], + "include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/types/**/*.d.ts"], "compilerOptions": { + "target": "ESNext", + "module": "ESNext", + "moduleResolution": "bundler", + "useDefineForClassFields": true, + "isolatedModules": true, + "strict": true, + "jsx": "preserve", + "resolveJsonModule": true, + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowJs": true, "ignoreDeprecations": "5.0", "baseUrl": ".", "paths": { "@/*": ["./src/*"] - }, - "outDir": "dist", - "allowJs": true + } }, "references": [ diff --git a/dashboard/tsconfig.vite-config.json b/dashboard/tsconfig.vite-config.json index b4fc38e578..886f74b46f 100644 --- a/dashboard/tsconfig.vite-config.json +++ b/dashboard/tsconfig.vite-config.json @@ -5,6 +5,9 @@ "outDir": "dist", "composite": true, "allowJs": true, + "skipLibCheck": true, + "esModuleInterop": true, + "moduleResolution": "node", "types": ["node"] } }