Comments Ingo started the conversationJanuary 26, 2023 at 2:21pmWhen 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 137George repliedJanuary 26, 2023 at 2:26pmHello 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 TeamIngo repliedJanuary 26, 2023 at 2:32pm$('#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 }); 137George repliedJanuary 26, 2023 at 2:41pmIt looks perfect. Could you, please upload your site somewhere, where I can check it?Best Regards,George | Kreatura Dev TeamIngo repliedJanuary 30, 2023 at 6:30amThe problem appears when using grunt+requirejs to compile the resources. I decided to move my projects to webpack. Now it works without a problem. 137George repliedJanuary 30, 2023 at 11:19amThank you for your feedback.Best Regards,George | Kreatura Dev Team Sign in to reply ...
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
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
$('#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
});
It looks perfect. Could you, please upload your site somewhere, where I can check it?
Best Regards,
George | Kreatura Dev Team
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.
Thank you for your feedback.
Best Regards,
George | Kreatura Dev Team