Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS error after initializing #61

Open
2 tasks done
sidelux opened this issue Jan 20, 2025 · 0 comments
Open
2 tasks done

JS error after initializing #61

sidelux opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@sidelux
Copy link

sidelux commented Jan 20, 2025

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/[email protected]/dist/css/splide-extension-video.min.css">
<script src="https://cdn.jsdelivr.net/npm/@splidejs/[email protected]/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

@sidelux sidelux added the bug Something isn't working label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant