Error jQuery(...).nanoScroller

nagia
Posts: 18
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: 236
Joined: 12 Sep 2017, 10:44

08 Dec 2017, 15:17

What is your node and angular/cli version?

nagia
Posts: 18
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: 18
Joined: 21 Nov 2017, 14:39

14 Dec 2017, 08:17

Any update on this issue?

merve7
Posts: 236
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: 25
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?

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

01 Jan 2018, 08:06

No, still the same error

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

02 Jan 2018, 11:09

Does anyone here care about the forum from PrimeNG? Such a bad support as here, I have never seen !!!

cagatay.civici
Prime
Posts: 17878
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Jan 2018, 13:36

Do you have nanoscroller installed?

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

04 Jan 2018, 16:14

Yes of Course

Code: Select all

"dependencies": {
    "@angular/animations": "^5.1.3",
    "@angular/common": "^5.1.3",
    "@angular/compiler": "^5.1.3",
    "@angular/compiler-cli": "^5.1.3",
    "@angular/core": "^5.1.3",
    "@angular/forms": "^5.1.3",
    "@angular/http": "^5.1.3",
    "@angular/platform-browser": "^5.1.3",
    "@angular/platform-browser-dynamic": "^5.1.3",
    "@angular/platform-server": "^5.1.3",
    "@angular/router": "^5.1.3",
    "@angular/upgrade": "^5.1.3",
    "angular-in-memory-web-api": "^0.5.2",
    "bootstrap": "^3.3.7",
    "core-js": "^2.5.3",
    "font-awesome": "^4.7.0",
    "fullcalendar": "^3.8.0",
    "jquery": "^3.2.1",
    "chart.js": "^2.7.1",
    "moment": "^2.20.1",
    "nanoscroller": "0.8.7",
    "primeng": "^5.0.2",
    "quill": "^1.3.4",
    "rxjs": "^5.5.6",
    "systemjs": "^0.20.19",
    "zone.js": "^0.8.19"
  },
  "devDependencies": {
    "@types/jasmine": "2.8.3",
    "@types/node": "^8.5.5",
    "@types/fullcalendar": "^3.8.0",
    "@types/jquery": "^3.2.17",
    "@types/moment": "^2.13.0",
    "@types/nanoscroller": "^0.8.2",
    "canonical-path": "0.0.2",
    "concurrently": "^3.5.1",
    "jasmine-core": "~2.8.0",
    "karma": "^2.0.0",
    "karma-chrome-launcher": "^2.2.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.1.1",
    "karma-jasmine-html-reporter": "^0.2.2",
    "lite-server": "^2.3.0",
    "lodash": "^4.17.4",
    "protractor": "~5.2.2",
    "rimraf": "^2.6.2",
    "tslint": "^5.8.0",
    "typescript": "2.6.2"
  },

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest