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

Returning error n is not a function #9

Open
2 tasks done
karltud123 opened this issue Feb 28, 2023 · 1 comment
Open
2 tasks done

Returning error n is not a function #9

karltud123 opened this issue Feb 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@karltud123
Copy link

Checks

Version

0.5.3

Description

Script returning error.

image

Below is the script that loads the splide.

      $(".splide.media-scroller", context).once("splide-init").each(function () {
        new Splide($(this).get(0), {
          type: 'loop',
          drag: 'free',
          focus: 'center',
          perPage: 3,
          autoScroll: {
            speed: 0.5,
          },
          gap: "1.5rem",
          pagination: false,
          arrows: false,
          padding: "1.5rem",
          mediaQuery: 'min',
          fixedWidth: '65%',
          breakpoints: {
            576: {
              fixedWidth: "41%",
            },
            992: {
              fixedWidth: "30%",
            },
            1200: {
              fixedWidth: "17%",
            },
          }
        }).mount(window.splide.Extensions);
      });

Reproduction Link

No response

Steps to Reproduce

  1. Create splide markup.
  2. Init the splide using the below code.
      $(".splide.media-scroller", context).once("splide-init").each(function () {
        new Splide($(this).get(0), {
          type: 'loop',
          drag: 'free',
          focus: 'center',
          perPage: 3,
          autoScroll: {
            speed: 0.5,
          },
          gap: "1.5rem",
          pagination: false,
          arrows: false,
          padding: "1.5rem",
          mediaQuery: 'min',
          fixedWidth: '65%',
          breakpoints: {
            576: {
              fixedWidth: "41%",
            },
            992: {
              fixedWidth: "30%",
            },
            1200: {
              fixedWidth: "17%",
            },
          }
        }).mount(window.splide.Extensions);
      });
  1. Open console log to see the error.

Expected Behaviour

There shouldnt be any javascript error.

@karltud123 karltud123 added the bug Something isn't working label Feb 28, 2023
@FilipROV
Copy link

Hello,
I have same problem, is anyone trying to solve this ?
Console is showing this error:
Snímek obrazovky 2024-09-11 105014

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

2 participants