• Hello,

    Very nice little plugin. Makes implementing Masonry super simple.

    We found that on our particular theme, we were experiencing the following error on pages that DIDN’T implement the masonry layout. It could be something non-standard we did when implementing, but we were able to fix it using the following:

    Error:

    Uncaught TypeError: Cannot read property 'id' of null
        at AnimOnScroll._init (AnimOnScroll.js?ver=4.9.8:89)
        at new AnimOnScroll (AnimOnScroll.js?ver=4.9.8:75)
        at main.js?ver=4.9.8:1

    Solution:

    Wrap

    if ( document.getElementById( 'sm-grid-layout' ) ) {}

    around the main.js file to check for the existence of sm-grid-layout before trying to implement it.

    Thanks!

  • The topic ‘Uncaught TypeError’ is closed to new replies.