Commit 2de4b5d
committed
fix(web): add @tanstack/react-virtual to Vite optimizeDeps
Add @tanstack/react-virtual to optimizeDeps.include and resolve.dedupe
to ensure it uses the same React instance as the main app. This fixes
"Cannot read properties of null (reading 'useReducer')" error that
crashed the entire catalogue page.
The error occurred because react-virtual was getting a different React
instance during Vite's dependency pre-bundling.1 parent 2349c94 commit 2de4b5d
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
0 commit comments