Runtime error: Cannot read properties of null (reading 'getBoundingClientRect')

Hi,

I get several of this for my page:

Bug in custom code TypeError: Cannot read properties of null (reading ‘getBoundingClientRect’) at :4:61

I’m thinking I did something wrong and messed up the underlying Canvas structure. Could there be a remedy not rebuilding the page?

Best, Peter

This error is usually about the element not being visible when running the logic so this is why this error shows up.

Thanks for giving me insight into that @cmarchan .

Is that because of a fault of mine?

Do you know of a remedy?

Make sure visibility of the element is in line with the user experience.

What I mean is … the element needs to be visible at the correct moment