Closed EmilyYond closed 11 months ago
This seems to be a Nuxt issue. I cannot identify a source within this component in the stack trace. Without an executable reproduction I cannot help.
Hi @DerYeger - thank you for looking into this, I will open it as a nuxt issue instead
Affected Packages
Description
I am getting the following warning "Unhandled error during execution of watcher callback" and then error "TypeError: Cannot read properties of null (reading 'parentNode')" which only occur when I use MasonryWall. If I remove it for a plain css grid, there are no errors.
For context, I have a masonry grid on my home page that has infinite scroll (so when you scroll to the bottom the next page is triggered and added to the list). Some of my other pages also contain the masonry grid so I am reusing the same component on these different pages.
Its really hard to replicate, as it is an inconsistent error but these are times I have had the error:
Reproduction
I am using Nuxt 3 with the following versions of packages (only including the ones I think might be relevant)
Then I define the component in a plugin (masonry.client.ts - I have tried as masonry.ts too)
The my masonry component (masonry.client.vue - I have also tried masonry.vue)
And then a simplified version of my home page, with some sensitive information removed, which is currently the only place calling it (although I need to be able to call it on other pages too)
Additional context
Any help would be greatly appreciated! Thank you
Preferences