Module not found: Error:
See original GitHub issueBug Report
Hi Team React-Virtualized,
I installed this "react-virtualized": "^9.21.2",
and after this when ran my project then facing below errors.
-
ERROR in …/node_modules/react-virtualized/dist/es/Collection/CollectionView.js Module not found: Error: Can’t resolve ‘dom-helpers/scrollbarSize’ in
-
ERROR in …/node_modules/react-virtualized/dist/es/Grid/Grid.js Module not found: Error: Can’t resolve ‘dom-helpers/scrollbarSize’
Issue 01)
Path not correct Inside the CollectionView.js for import getScrollbarSize from 'dom-helpers/scrollbarSize';
Solution 01) It’s working fine when I used this path import getScrollbarSize from '../../../node_modules/dom-helpers/scrollbarSize';
Issue 02)
Path not correct Inside the Grid.js for import scrollbarSize from 'dom-helpers/scrollbarSize';
Solution 02) It’s working fine when I used this path import scrollbarSize from '../../../node_modules/dom-helpers/scrollbarSize';
Please see attached images.
Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?
Browser | Version 84.0.4147.105 (Official Build) (64-bit) |
OS | Windows 10 |
React | “react”: “^16.4.0”, |
React DOM | “react-dom”: “^16.4.0”, |
react-virtualized | “react-virtualized”: “^9.21.2” |
Thanks, BSR
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5
Top GitHub Comments
@mbonaci I’m reopening as still same error and not fixed.
@rathorebs What happens if you downgrade to
"react-virtualized": "9.21.0"
? That works for me, even withnpm
.FYI I’m not affiliated with this project in any way.