From db8cef826ee04c579725c4878d4fcc686700e713 Mon Sep 17 00:00:00 2001 From: HangerThem Date: Thu, 18 Jun 2026 10:33:34 +0200 Subject: [PATCH] Fixed TS config file --- .../demo/tsconfig.json | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/block-01/week-01-the_web_under_the_hood/demo/tsconfig.json b/block-01/week-01-the_web_under_the_hood/demo/tsconfig.json index 9751913..423a6ec 100644 --- a/block-01/week-01-the_web_under_the_hood/demo/tsconfig.json +++ b/block-01/week-01-the_web_under_the_hood/demo/tsconfig.json @@ -1,22 +1,20 @@ { "compilerOptions": { "target": "es2023", - "module": "NodeNext", + "module": "esnext", "lib": [ - "ES2023" + "ES2023", + "DOM" ], "types": [ - "node", "vite/client" ], "skipLibCheck": true, - /* Server + Vite middleware specific */ - "moduleResolution": "NodeNext", - "esModuleInterop": true, - "resolveJsonModule": true, - "allowJs": true, + /* Bundler mode */ + "moduleResolution": "bundler", "allowImportingTsExtensions": true, - /* Keep TS as a type checker only (no emit) when running via ts-node/vite) */ + "verbatimModuleSyntax": true, + "moduleDetection": "force", "noEmit": true, /* Linting */ "noUnusedLocals": true, @@ -25,7 +23,6 @@ "noFallthroughCasesInSwitch": true }, "include": [ - "src", - "server" + "src" ] } \ No newline at end of file