From 0f9fe0367a04d2358232a40f39d020f82fc8bb0c Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 10 Jun 2025 21:23:46 +0300 Subject: [PATCH] chore(client): fix excalidraw erroring out due to react --- apps/client/vite.config.mts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/client/vite.config.mts b/apps/client/vite.config.mts index e8f9a9971..05dd85e53 100644 --- a/apps/client/vite.config.mts +++ b/apps/client/vite.config.mts @@ -44,6 +44,10 @@ export default defineConfig(() => ({ find: "@triliumnext/highlightjs", replacement: resolve(__dirname, "node_modules/@triliumnext/highlightjs/dist") } + ], + dedupe: [ + "react", + "react-dom" ] }, // Uncomment this if you are using workers.