From 474102aa14b1394e6abc46ca9d3888c451e0b8a1 Mon Sep 17 00:00:00 2001 From: James Murdza Date: Sat, 2 Nov 2024 13:28:21 -0600 Subject: [PATCH] fix: use new project directory path to find tsconfig files --- frontend/components/editor/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/components/editor/index.tsx b/frontend/components/editor/index.tsx index 59e7a21..fdf2f98 100644 --- a/frontend/components/editor/index.tsx +++ b/frontend/components/editor/index.tsx @@ -218,7 +218,6 @@ export default function CodeEditor({ let mergedConfig: any = { compilerOptions: {} } for (const file of tsconfigFiles) { - const containerId = file.id.split("/").slice(0, 2).join("/") const content = await fetchFileContent(file.id) try { @@ -228,8 +227,7 @@ export default function CodeEditor({ if (tsConfig.references) { for (const ref of tsConfig.references) { const path = ref.path.replace("./", "") - const fileId = `${containerId}/${path}` - const refContent = await fetchFileContent(fileId) + const refContent = await fetchFileContent(path) const referenceTsConfig = JSON.parse(refContent) // Merge configurations