egjs-infinitegrid: Cannot read property 'tagName' of undefined

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)

About this issue

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

Most upvoted comments

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

@GitHubish

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

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