From 6c59fc5652c8c78ef4b0b94faea05f2618989dab Mon Sep 17 00:00:00 2001 From: Michael Marszalek Date: Mon, 11 Nov 2024 14:27:09 +0100 Subject: [PATCH] chore: fix storybook cache vite error (#2768) Fix vite complaining about missing random cache files from storybook. image --- vite.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index b2add82ea9..98ab4bb06a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -21,4 +21,6 @@ export default defineConfig({ usePolling: true, }, }, + // Temporary "fix" https://github.com/storybookjs/storybook/issues/28542 + optimizeDeps: { exclude: ['apps/storybook/node_modules/.cache/storybook'] }, });