From 6f0dddbbcb06a8f2634cf20709e8b96d151a2c4c Mon Sep 17 00:00:00 2001 From: Karan Janthe Date: Sat, 7 Oct 2023 14:56:57 +0530 Subject: [PATCH] fix: updated error msg for jsconfig in cli --- packages/cli/src/utils/get-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/utils/get-config.ts b/packages/cli/src/utils/get-config.ts index b6376d70294..14fa6e1221e 100644 --- a/packages/cli/src/utils/get-config.ts +++ b/packages/cli/src/utils/get-config.ts @@ -65,7 +65,7 @@ export async function resolveConfigPaths(cwd: string, config: RawConfig) { if (tsConfig.resultType === "failed") { throw new Error( - `Failed to load tsconfig.json. ${tsConfig.message ?? ""}`.trim() + `Failed to load ${config.tsx ? "tsconfig" : "jsconfig"}.json. ${tsConfig.message ?? ""}`.trim() ) }