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.

Cannot read property 'tagName' of undefined

See original GitHub issue

I have the error “Cannot read property ‘tagName’ of undefined” which appears systematically on Angular. The grid is displayed if I don’t set the isOverflowScroll option to true even if the error occurs several times. But if I set it to true the grid is not displayed at all. Cannot find the cause of the problem.

ERROR TypeError: Cannot read property 'tagName' of undefined
    at lazyloaded.esm.js:221
    at Array.forEach (<anonymous>)
    at check (lazyloaded.esm.js:220)
    at RenderManager.__proto.render (infinitegrid.esm.js:1656)
    at next (infinitegrid.esm.js:3447)
    at NgxGridLayoutComponent.next [as nextFunction] (infinitegrid.esm.js:3511)
    at NgxGridLayoutComponent.ngAfterViewChecked (egjs-ngx-infinitegrid.js:155)
    at callProviderLifecycles (core.js:32331)
    at callElementProvidersLifecycles (core.js:32293)
    at callLifecycleHooksChildrenFirst (core.js:32275)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
GitHubishcommented, Mar 4, 2020

Yes, that’s right. I will try to create from your Stackblitz an example similar to my app to try to find out what generates the problem. Instead of images, for my part it’s a card component that may or may not have an image.

Thanks

1reaction
daybrushcommented, Mar 4, 2020

@GitHubish

Do you compare with this? I’ve implemented similar but it’s not reproducible.

https://codesandbox.io/s/ngx-infinitegrid-demo-gridlayout-7diu5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'tagName' of undefined #1107 - GitHub
I was expecting [Y]. No error should be thrown. The following error is what I get: ERROR TypeError: Cannot read property 'tagName' of...
Read more >
Cannot read properties of undefined (reading 'tagName')
It's common for nested loops, to use a different loop variable, such as while the outer loop uses var i=0; the inner loop...
Read more >
Cannot read property 'tagName' of undefined - Telerik Forums
Uncaught TypeError : Cannot read property 'tagName' of undefined in Kendo UI for jQuery | Telerik Forums.
Read more >
ember test throw error - Cannot read property 'tagName' of ...
i have migrated ember 3.16 to 3.24 I struck on ember test error. But the app works fine Chrome 88.0 - [17 ms]...
Read more >
Cannot read property 'tagName' of null throws at /jslibrary ...
Anyway, there is a workaround to use composed: true and bubbles: true in the custom event definition. onClick(event) { this.dispatchEvent(new ...
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