Okay
  Public Ticket #3216928
Error when compiling with requirejs
Closed

Comments

  • Ingo started the conversation

    When I build a project with requirejs including layerslider i get the following error:

    "Invalid left-hand side in for-in"

    else for (r in s) a[r] = l(s[r]); 

    File: layerslider.util.js v7.6.5


  •  112
    George replied

    Hello Ingo,

    I think that you may mistyped something in the slider init code. Could you, please show me your website where I can see your slider, or please send me the file where you've put the init code.

    Best Regards,
    George | Kreatura Dev Team

  • Ingo replied

    $('#slider-main').layerSlider({
          createdWith: '6.6.0',
          sliderVersion: '6.11.1',
          type: 'fullsize',
          pauseOnHover: 'disabled',
          skin: 'v6',
          navStartStop: false,
          thumbnailNavigation: 'disabled',
          useSrcset: false,
          skinsPath: '/webshopTheme/css/layerslider/skins/',
          height: 720
     });

  •  112
    George replied

    It looks perfect. Could you, please upload your site somewhere, where I can check it?

    Best Regards,
    George | Kreatura Dev Team

  • Ingo replied

    The problem appears when using grunt+requirejs to compile the resources. I decided to move my projects to webpack. Now it works without a problem. 

  •  112
    George replied

    Thank you for your feedback.

    Best Regards,
    George | Kreatura Dev Team