Error jQuery(...).nanoScroller

Post Reply
nagia
Posts: 11
Joined: 21 Nov 2017, 14:39

07 Dec 2017, 11:18

Hi,
Im getting the following error in serenity app.menu.component in setTimeout(() => {
jQuery(this.layoutMenuScroller).nanoScroller({ flash: true });
}, 10);
core.js:1350 ERROR TypeError: jQuery(...).nanoScroller is not a function.
It is working fine but how can I make the error go away?
Appreciate any help with the issue.

merve7
Posts: 66
Joined: 12 Sep 2017, 10:44

08 Dec 2017, 15:17

What is your node and angular/cli version?

nagia
Posts: 11
Joined: 21 Nov 2017, 14:39

11 Dec 2017, 07:59

Hi ,
My angular version is 5.0.3 and my node version is v6.10.3

nagia
Posts: 11
Joined: 21 Nov 2017, 14:39

14 Dec 2017, 08:17

Any update on this issue?

merve7
Posts: 66
Joined: 12 Sep 2017, 10:44

15 Dec 2017, 15:47

Can you try?
delete this

Code: Select all

jQuery(this.layoutMenuScroller).nanoScroller();
and
write this

Code: Select all

jQuery(this.layoutMenuScrollerViewChild.nativeElement).nanoScroller();

zornic
Posts: 3
Joined: 09 Dec 2017, 10:12

17 Dec 2017, 06:09

Hello,

I've the same Problem. I use systemjs and added the nanoscroller in the systemjs.config.js but i become "nanoScroller is not a function"

Code: Select all

'nanoscroller': 'npm:nanoscroller/bin/javascripts/jquery.nanoscroller.js',
Is your Problem fixed?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest