Closed fabianwurk closed 2 years ago
Hi @fabianwurk,
Thanks for your question. Probably because you’re passing null
instead of an HTML element node to EmblaCarousel()
. Passing null
as the first argument to the EmblaCarousel()
constructor isn't a valid:
const emblaNode = document.querySelector('.embla') // This is null in your case
const embla = EmblaCarousel(emblaNode) // So this throws an error because you need to pass a valid HTML element to it
Best, David
@fabianwurk did you see my response?
Thanks @davidjerleke - that makes sense.
I have tried integrating as a module, but also the CDN method, but console is throwing the following error:
Any ideas why this may be happening?