Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
module is not working and it is throwing js error. For now I am not sure whether it's jcarousel module issue or jquery library issue in Drupal.
Error:- Uncaught TypeError: r.size is not a function
Using environment:
Drupal version 8.4.2
php 7.0
Comment | File | Size | Author |
---|---|---|---|
#3 | jcarousel.jpg | 41.54 KB | neeraprajapati |
Comments
Comment #2
niko- CreditAttribution: niko- as a volunteer commentedCould you show the browser console screanshort with expanded backtrace for error
Comment #3
neeraprajapati CreditAttribution: neeraprajapati at Valuebound commentedHello @niko, Sorry for replying you late. I have attached screen shot here.
I have upgraded Drupal site to latest Drupal version(8.4.2) and this version is using jQuery library version (3.2.1) and as per jQuery upgrade guide size() function is deprecated. I have resolve this issue by replacing "size()" function with "length" in jquery.jcarousellite.min.js library.
I referred this: https://jquery.com/upgrade-guide/3.0/#breaking-change-deprecated-size-re....
Comment #4
niko- CreditAttribution: niko- as a volunteer commentedHi @neeraprajapati
Sorry for delay with unswer.
As I see you are using jcarousellite library http://www.gmarwaha.com/jquery/jcarousellite/
but this module is for jCarousel https://sorgalla.com/jcarousel/