Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'clientWidth' of null #24

Open
exploy opened this issue Jan 31, 2022 · 0 comments
Open

Uncaught TypeError: Cannot read property 'clientWidth' of null #24

exploy opened this issue Jan 31, 2022 · 0 comments

Comments

@exploy
Copy link

exploy commented Jan 31, 2022

Hi,

First of all thanks for bringing this library back to life :)

Unfortunately, I'm experiencing something looking like the issue reported to the first version of the library malte-wessel/react-custom-scrollbars#261

     TypeError: Cannot read properties of null (reading 'clientWidth')
      at getInnerWidth (webpack://growbots-web-interface/./node_modules/react-custom-scrollbars-2/lib/utils/getInnerWidth.js?:8:26)
      at Scrollbars._update (webpack://growbots-web-interface/./node_modules/react-custom-scrollbars-2/lib/Scrollbars/index.js?:626:75)
      at eval (webpack://growbots-web-interface/./node_modules/react-custom-scrollbars-2/lib/Scrollbars/index.js?:610:31)
      at eval (webpack://growbots-web-interface/./node_modules/react-custom-scrollbars-2/lib/Scrollbars/index.js?:601:17)

What is my use case:
I'm running some tests on Cypress and whenever there is a component with Scrollbars the above exceptions appear and hence of this the test fails.

I will be grateful for any way of working around this issue.

So far I tried

cy.on('uncaught:exception', (err, runnable) => {...}

but it does not solve the issue for me.

Regards,
Jarek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant