Skip to content

JS error after initializing #61

Description

@sidelux

Checks

Version

0.8.0

Description

Hello, i'm using the Splide version 2.4.21 and the 0.8.0 of this extension but when i try to initialize here:
const splide_head_desktop = new Splide('#splide-main', splide_head_opt).mount(window.splide.Extensions);
I get this error:

Uncaught TypeError: Cannot read properties of undefined (reading 'bus')
    at u (splide-extension-video.min.js:8:1379)
    at Ot (splide-extension-video.min.js:20:23272)
    at splide.min.js:6:6087
    at splide.min.js:6:818
    at Array.some (<anonymous>)
    at o (splide.min.js:6:791)
    at splide.min.js:6:6063
    at u.mount (splide.min.js:6:6154)
    at auction.php:372:76

I'm using the cdn version:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@splidejs/splide-extension-video@0.8.0/dist/css/splide-extension-video.min.css">
<script src="https://cdn.jsdelivr.net/npm/@splidejs/splide-extension-video@0.8.0/dist/js/splide-extension-video.min.js"></script>

Thanks a lot for your help.

Also, this repo is abandoned?

Reproduction Link

No response

Steps to Reproduce

  1. Add CDN links
  2. Add window.splide.Extensions in the initialize line

Expected Behaviour

No js error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions