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.

Scrolling exception: Cannot read property 'scrollTop' of null

See original GitHub issue

Description

For context, I have a lot of spare hosting infrastructure and I am trying to dockerize & rehost several applications so we have some back up in case or offer the services for other dnd tool developers.

I am trying to host it, because it seems that the original author is not updating the website anymore. I have dockerized the application, currently running at https://homebrewery.hoengg.tech with version 2.8.0. The main issue is that I do not understand react/node as much as basic work with it, I package applications into containers and run them.

I am currently running into the problem when I scroll, I receive the error:

Uncaught TypeError: Cannot read property 'scrollTop' of null

How to reproduce : The introduction letter is enough already, if visit https://homebrewery.hoengg.tech you can try to scroll on the preview window and it will immediately crash, you have some lines of console output.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
AlexeySachkovcommented, Aug 20, 2018

@schemen, I have no other ideas, sorry. I’m not really familiar with all of these node.js/react/other stuff. Maybe @Rae2che5 can help you.

0reactions
schemencommented, Aug 20, 2018

I can now confirm that it is indeed working, I’ve also done some refinements to the docker image and I will provide a PR or add some information to #734 soon!

The running example is https://homebrewery.hoengg.tech, hosted on a docker swarm cluster 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'scrollTop' of null` in a custom hook ...
I made a hook to get the scroll position of a component, like so: function useScrollPosition() { function getScroll() { return { x:...
Read more >
Uncaught TypeError: Cannot read property 'scrollTop' of null
So, in Eureka, this code works fine: function close_and_reopen_UI_Page(). {. // Close this current pop-up UI page.
Read more >
How to resolve TypeError: Cannot read property 'scrollTo' of ...
It throws me an error and this occurs continuously after some time interval. Error:: TypeError: Cannot read property 'scrollTo' of null. Unable ...
Read more >
Element.scrollTop - Web APIs | MDN
The Element.scrollTop property gets or sets the number of pixels that an element's content is scrolled vertically.
Read more >
Cannot read property 'scrollTop' of null - Ionic Forum
virtualScroll scrollTo generates TypeError: Cannot read property 'scrollTop' of null ... Hi all, New to Ionic here, just love it. SuperSample is ...
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