From 9b8fe2d5d03e7bcd7f85b946c735bba2dfb681ac Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Wed, 29 Apr 2026 08:57:32 +0530 Subject: [PATCH] fix(frontend): migrate tsconfig off TS 6.0 deprecated options - esModuleInterop: false -> true (modern default) - moduleResolution: Node -> Bundler (recommended for Vite) - remove baseUrl; paths resolves relative to tsconfig --- frontend/tsconfig.json | 8 +++----- frontend/tsconfig.node.json | 5 ++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 0997644f..c2b499ce 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -5,22 +5,20 @@ "lib": ["DOM", "DOM.Iterable", "ESNext"], "allowJs": false, "skipLibCheck": true, - "esModuleInterop": false, + "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strict": true, "forceConsistentCasingInFileNames": true, "module": "ESNext", - "moduleResolution": "Node", + "moduleResolution": "Bundler", "resolveJsonModule": true, "types": ["vite-plugin-svgr/client"], "isolatedModules": true, "noEmit": true, "jsx": "react-jsx", - "baseUrl": ".", "paths": { "@/*": ["./src/*"] - }, - "ignoreDeprecations": "6.0" + } }, "include": ["src"], "references": [{ "path": "./tsconfig.node.json" }] diff --git a/frontend/tsconfig.node.json b/frontend/tsconfig.node.json index df041af0..16dfedc6 100644 --- a/frontend/tsconfig.node.json +++ b/frontend/tsconfig.node.json @@ -2,9 +2,8 @@ "compilerOptions": { "composite": true, "module": "ESNext", - "moduleResolution": "Node", - "allowSyntheticDefaultImports": true, - "ignoreDeprecations": "6.0" + "moduleResolution": "Bundler", + "allowSyntheticDefaultImports": true }, "include": ["vite.config.ts"] }