question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swiper with RequireJS (TypeError: f.wrapper.transition is not a function)

See original GitHub issue

Hi,

When I use Swiper with RequireJS sometimes I get such error:

TypeError: f.wrapper.transition is not a function
...)},f.setWrapperTransition=function(e,a){f.wrapper.transition(e),"slide"!==f.para...

swiper.....min.js (line 15, row 29993)

Is it possible to use Swiper with RequireJS?

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
lixiaodongcommented, Jun 17, 2016

It’s fixed!!!

this error has confused me 2 days.now it’s fixed! this issue fixed in 3.1.0 with swiper.jquery.umd.js.@nolimits4web you are right. when i use swiper.jquery.umd.js ,everything runs well. thank you for your comment @nolimits4web ,but i give you -1. because your comment is not very clear …

1reaction
lixiaodongcommented, Jun 15, 2016

@nolimits4web I got the same error ,when i use swiper in requirejs. require([‘jquery’,‘underscore’,‘swiper’],function($,_,Swiper) {

    var mySwiper = new Swiper ('.swiper-container', {
        // direction: 'vertical',
        loop: true,

        // 如果需要分页器
        pagination: '.swiper-pagination'

    });
Read more comments on GitHub >

github_iconTop Results From Across the Web

swiper is not a function - Stack Overflow
I have code above like this but every time use this method i get error. cggowl_jav_info_cont.swiper us not a function. i am not...
Read more >
Magento 2 - Require Js not a function error
I can't seem to get my head around why its not working. And most other questions on here don't seem to be the...
Read more >
Swiper API
Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior.
Read more >
https://assets.hearstapps.com/assets/dist/js/share...
View.extend({\n // Require JS path for Facebook's SDK\n requireJSPath: ... d)throw new TypeError(b+\" on iFrame[\"+a+\"] is not a function\");e=d(c)}return ...
Read more >
Untitled
... #index-bn{right:-2px}.f-swicth-wrapper{position:fixed;bottom:.67rem;-webkit-transition:.25s all linear;transition:.25s all linear ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found