From 03f14ecca079ba893cb233e4a006f18d282d7ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20Vall=C3=A9e?= <72668371+Tranzitron@users.noreply.github.com> Date: Fri, 2 Oct 2026 09:40:32 -0400 Subject: [PATCH] Set rootDir so library imports resolve in tsc The components and api.service.ts import the shared interfaces straight from library/src/models instead of a built package, so the program's inputs reach outside frontend/. tsc inferred rootDir as frontend/ and rejected all eleven import sites with TS6059. TypeScript 5.9 tolerated this, but bd4cb9a bumped the frontend to ^6.0.3, which enforces rootDir. ng build stayed green the whole time because @angular/build's esbuild pipeline does not check it, so only tsc broke. Point rootDir at the repo root, which contains both frontend/src and library/src. --- frontend/tsconfig.app.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json index 264f459..c6a3750 100644 --- a/frontend/tsconfig.app.json +++ b/frontend/tsconfig.app.json @@ -3,6 +3,13 @@ { "extends": "./tsconfig.json", "compilerOptions": { + // The components and api.service.ts import the shared interfaces straight from + // the source - "../../../library/src/models" - rather than from a built + // package, so the program's inputs reach outside this folder. Without a + // rootDir that covers both trees, tsc infers frontend/ and rejects them with + // TS6059. TypeScript 5.9 tolerated that; 6.x (bumped in bd4cb9a) enforces + // it, which broke every one of those import sites. + "rootDir": "..", "outDir": "./out-tsc/app", "types": [] },