Page 1 of 2

Error jQuery(...).nanoScroller

Posted: 07 Dec 2017, 11:18
by nagia
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.

Re: Error jQuery(...).nanoScroller

Posted: 08 Dec 2017, 15:17
by merve7
What is your node and angular/cli version?

Re: Error jQuery(...).nanoScroller

Posted: 11 Dec 2017, 07:59
by nagia
Hi ,
My angular version is 5.0.3 and my node version is v6.10.3

Re: Error jQuery(...).nanoScroller

Posted: 14 Dec 2017, 08:17
by nagia
Any update on this issue?

Re: Error jQuery(...).nanoScroller

Posted: 15 Dec 2017, 15:47
by merve7
Can you try?
delete this

Code: Select all

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

Code: Select all

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

Re: Error jQuery(...).nanoScroller

Posted: 17 Dec 2017, 06:09
by zornic
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?

Re: Error jQuery(...).nanoScroller

Posted: 01 Jan 2018, 08:06
by nagia
No, still the same error

Re: Error jQuery(...).nanoScroller

Posted: 02 Jan 2018, 11:09
by zornic
Does anyone here care about the forum from PrimeNG? Such a bad support as here, I have never seen !!!

Re: Error jQuery(...).nanoScroller

Posted: 04 Jan 2018, 13:36
by cagatay.civici
Do you have nanoscroller installed?

Re: Error jQuery(...).nanoScroller

Posted: 04 Jan 2018, 16:14
by zornic
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"
  },