Uncaught Error: [splide] null is invalid #778
Answered
by
NaotoshiFujita
stephenmeehanuk
asked this question in
Q&A
-
Hi I'm seeing this error on pages where I'm not using Splide
My site.js looks like this
Is there something I can add to this to only run the script if Splide is on the page? The error doesn't show on pages where I'm using Splide. |
Beta Was this translation helpful? Give feedback.
Answered by
NaotoshiFujita
Apr 29, 2022
Replies: 1 comment 2 replies
-
Grab the target element and check the existense first. If available, appliy Splide to the element. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
stephenmeehanuk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Grab the target element and check the existense first. If available, appliy Splide to the element.