From 8798007921e5404580f355ed12ae9c46f53285b1 Mon Sep 17 00:00:00 2001 From: Tee Ming Date: Sun, 8 Mar 2026 00:30:39 +0800 Subject: [PATCH 1/2] Enhance error handling with additional instructions Updated error message to include cache deletion instructions. --- apps/svelte.dev/svelte.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/svelte.dev/svelte.config.js b/apps/svelte.dev/svelte.config.js index c32bb82b4e..3749340188 100644 --- a/apps/svelte.dev/svelte.config.js +++ b/apps/svelte.dev/svelte.config.js @@ -19,7 +19,10 @@ const config = { return; } - throw new Error(warning.message); + throw new Error( + warning.message + + '. You may need to delete `node_modules/.cache/twoslash` or redeploy on Vercel without using the existing build cache.' + ); } } } From d6cd31709f239bfbc6ec9165a9418735d8a8464b Mon Sep 17 00:00:00 2001 From: Tee Ming Date: Mon, 16 Mar 2026 23:59:45 +0800 Subject: [PATCH 2/2] format --- apps/svelte.dev/svelte.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/svelte.dev/svelte.config.js b/apps/svelte.dev/svelte.config.js index 3749340188..0ae275d81c 100644 --- a/apps/svelte.dev/svelte.config.js +++ b/apps/svelte.dev/svelte.config.js @@ -21,7 +21,7 @@ const config = { throw new Error( warning.message + - '. You may need to delete `node_modules/.cache/twoslash` or redeploy on Vercel without using the existing build cache.' + '. You may need to delete `node_modules/.cache/twoslash` or redeploy on Vercel without using the existing build cache.' ); } }