question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module not found: Error:

See original GitHub issue

Bug Report

Hi Team React-Virtualized,

I installed this "react-virtualized": "^9.21.2", and after this when ran my project then facing below errors.

  1. ERROR in …/node_modules/react-virtualized/dist/es/Collection/CollectionView.js Module not found: Error: Can’t resolve ‘dom-helpers/scrollbarSize’ in

  2. 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.

Grid CollectionView

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:open
  • Created 3 years ago
  • Reactions:6
  • Comments:5

github_iconTop GitHub Comments

1reaction
rathorebscommented, Dec 6, 2020

@mbonaci I’m reopening as still same error and not fixed.

0reactions
mbonacicommented, Dec 14, 2020

@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 with npm.

FYI I’m not affiliated with this project in any way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: no module named Python Error [Fixed]
How to fix the ModuleNotFoundError in Python · 1. Make sure imported modules are installed · 2. Make sure modules are spelled correctly...
Read more >
How to Fix ModuleNotFoundError and ImportError
first make sure you are using absolute imports · export the project's root directory to PYTHONPATH.
Read more >
Python ModuleNotFoundError Solution - Career Karma
The ModuleNotFoundError is raised when Python cannot locate an error. The most common cause of this error is forgetting to install a module...
Read more >
Python - Module Not Found - Stack Overflow
I got the error ModuleNotFoundError: No module named 'requests.adapters'; 'requests' is not a package. Turns out the file I created in the same...
Read more >
Python Import Error (ModuleNotFoundError) - Finxter
Python's ImportError ( ModuleNotFoundError ) indicates that you tried to import a module that Python doesn't find. It can usually be eliminated by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found