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.

`infinite-scroll`: Cannot read properties of undefined (reading 'append')

See original GitHub issue

Please ensure:

  • The bug is caused by Refined GitHub. It doesn’t happen if I disable the extension.

Example URLs

https://github.com/

Browser(s) used

Google Chrome 97.0.4692.71 (64-bit)

Description

TypeError: Cannot read properties of undefined (reading 'append')
    at chrome-extension://hlepfoohegkhhmjieoechaddaejaokhf/build/refined-github.js:5223:45
    at chrome-extension://hlepfoohegkhhmjieoechaddaejaokhf/build/refined-github.js:1923:97
    at runFeature (chrome-extension://hlepfoohegkhhmjieoechaddaejaokhf/build/refined-github.js:2924:26)
    at setupPageLoad (chrome-extension://hlepfoohegkhhmjieoechaddaejaokhf/build/refined-github.js:2934:40)
    at chrome-extension://hlepfoohegkhhmjieoechaddaejaokhf/build/refined-github.js:2956:35

Console error:

refined-github.js:2886 ❌ infinite-scroll 22.1.11 → TypeError: Cannot read properties of undefined (reading 'append')
    at refined-github.js:5223:45
    at refined-github.js:1923:97
    at runFeature (refined-github.js:2924:26)
    at setupPageLoad (refined-github.js:2934:40)
    at refined-github.js:2956:35

Include in this issue:

  • Screenshots/video/gif demonstrating the bug, if it’s visual
  • Console errors, if any

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kidonngcommented, Jan 15, 2022

It probably would look weird but OK

EDIT: “Explore repositories” is generated server-side, how can it fail to load 🤔 this bug needs to be more reproducible

2reactions
cheap-glitchcommented, Jan 14, 2022

Weird, I was only able to reproduce this a single time. It seems that the “Explore” sidebar fails to load once in a while, which causes this line to throw an error:

https://github.com/refined-github/refined-github/blob/c9d133547f45321c28fb7ddb35ffc08189c9082e/source/features/infinite-scroll.tsx#L47

Not sure if it’s worth fixing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'result' of undefined infinite scroll
I've edited the answer, the logic is that new items should be append to vm.items array. and I don't know how the service...
Read more >
Cannot read property 'getBoundingClientRect' of undefined ...
I've copied the code from David DeSandro's pen (https://codepen.io/desandro/pen/EXXGem) to my Django project.
Read more >
InfiniteScroll bug or problem - ionic-v3
Im getting errors in any page im using InfiniteScroll. This is the error that ionic is giving me. Uncaught TypeError: Cannot read property ......
Read more >
Infinite Scroll in React | Full Tutorial - YouTube
Infinite Scroll in React is a highly requested app feature that can be achieved in several ways. ... Your browser can't play this...
Read more >
Options - Infinite Scroll
Disable appending by not setting append , for loading JSON or adding your own append behavior like with Masonry or Isotope.
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