Skip to content

Commit 433bf81

Browse files
committed
fix(web): add dnd-kit packages to Vite dedupe array
Fixes useSensor hook crash in CatalogueEntities by deduplicating @dnd-kit/core, @dnd-kit/sortable, and @dnd-kit/utilities.
1 parent bd8a231 commit 433bf81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function createWebConfig(): UserConfig {
168168
alias: {
169169
'@': resolve(__dirname, 'src'),
170170
},
171-
dedupe: ['react', 'react-dom', '@tanstack/react-virtual', 'react-force-graph-2d', 'react-force-graph-3d', 'three'],
171+
dedupe: ['react', 'react-dom', '@tanstack/react-virtual', 'react-force-graph-2d', 'react-force-graph-3d', 'three', '@dnd-kit/core', '@dnd-kit/sortable', '@dnd-kit/utilities'],
172172
},
173173

174174
// Development server configuration

0 commit comments

Comments
 (0)