fix: deduplicate react in Vite to prevent zustand hook errors in monorepo

This commit is contained in:
Siddharth Kumar Sah
2026-03-22 03:03:07 +08:00
parent e920021da1
commit e8dfd2e628
+1
View File
@@ -9,6 +9,7 @@ export default defineConfig({
alias: {
"@": path.resolve(__dirname, "./src"),
},
dedupe: ["react", "react-dom"],
},
server: {
port: 5173,