Upgrade Ultima from 1.1 to 2.0.1 - errors

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
sk77
Posts: 62
Joined: 18 Sep 2016, 18:30

07 Feb 2017, 01:11

Hello,

I am trying to upgrade Ultima from 1.1 to 2.0.1.. I am getting error.. Can you please help me out?


TypeError: jQuery(...).nanoScroller is not a function

at

setTimeout(function () {
jQuery(_this.layoutMenuScroller).nanoScroller({ flash: true });
}, 10);



src\client\app\app.component.ts(70,79): error TS7006: Parameter 'event' implicitly has an 'any' type.
src\client\app\app.component.ts(89,21): error TS7006: Parameter 'event' implicitly has an 'any' type.
src\client\app\app.component.ts(120,15): error TS7006: Parameter '$event' implicitly has an 'any' type.
src\client\app\app.component.ts(130,27): error TS7006: Parameter 'event' implicitly has an 'any' type.
src\client\app\app.component.ts(142,21): error TS7006: Parameter 'event' implicitly has an 'any' type.
src\client\app\app.component.ts(142,28): error TS7006: Parameter 'item' implicitly has an 'any' type.
src\client\app\app.profile.component.ts(62,13): error TS7006: Parameter 'event' implicitly has an 'any' type.



Please advise

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

07 Feb 2017, 08:48

Can you please install nanoscroller via npm and add these lines to your angular-cli.json

Code: Select all

"styles": [
        "../node_modules/font-awesome/css/font-awesome.min.css",
        "../node_modules/primeng/resources/primeng.min.css",
        "../node_modules/fullcalendar/dist/fullcalendar.min.css",
        "../node_modules/quill/dist/quill.snow.css",
          "../node_modules/nanoscroller/bin/css/nanoscroller.css",
        "styles.scss"
      ],
"scripts": [
     "../node_modules/jquery/dist/jquery.js",
     "../node_modules/nanoscroller/bin/javascripts/jquery.nanoscroller.js",
     "../node_modules/moment/moment.js",
     "../node_modules/chart.js/dist/Chart.js",
     "../node_modules/fullcalendar/dist/fullcalendar.js",
     "../node_modules/quill/dist/quill.js"
 ]

sk77
Posts: 62
Joined: 18 Sep 2016, 18:30

07 Feb 2017, 16:23

I am using Angular Seed, nanoscroller has been installed through NPM

// Add `NPM` third-party libraries to be injected/bundled.
this.NPM_DEPENDENCIES = [
...this.NPM_DEPENDENCIES,
{src: 'jquery/dist/jquery.min.js', inject: 'libs'},
{src: 'nanoscroller/bin/javascripts/jquery.nanoscroller.js', inject: 'libs'},
{src: 'nanoscroller/bin/css/nanoscroller.css', inject: true},
{ src: 'primeng/resources/primeng.min.css', inject: true },
{src: 'primeui/primeui-ng-all.min.js', inject: 'libs'},

Do I need other javascript files that you listed?

sk77
Posts: 62
Joined: 18 Sep 2016, 18:30

07 Feb 2017, 17:52

I was able to fix nanoscroller error by moving nanoscroller js file to assets folder..temporary fix...

I am having issues with parameter event --

src\client\app\app.component.ts(70,79): error TS7006: Parameter 'event' implicitly has an 'any' type.
src\client\app\app.component.ts(89,21): error TS7006: Parameter 'event' implicitly has an 'any' type.
src\client\app\app.component.ts(120,15): error TS7006: Parameter '$event' implicitly has an 'any' type.
src\client\app\app.component.ts(130,27): error TS7006: Parameter 'event' implicitly has an 'any' type.
src\client\app\app.component.ts(142,21): error TS7006: Parameter 'event' implicitly has an 'any' type.
src\client\app\app.component.ts(142,28): error TS7006: Parameter 'item' implicitly has an 'any' type.
src\client\app\app.profile.component.ts(62,13): error TS7006: Parameter 'event' implicitly has an 'any' type.

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

08 Feb 2017, 10:20

Hi,

In ultima we have these scripts

Code: Select all

"scripts": [
          "../node_modules/jquery/dist/jquery.js",
          "../node_modules/nanoscroller/bin/javascripts/jquery.nanoscroller.js",
          "assets/layout/js/ripple.js",
          "../node_modules/moment/moment.js",
          "../node_modules/chart.js/dist/Chart.js",
          "../node_modules/fullcalendar/dist/fullcalendar.js",
          "../node_modules/quill/dist/quill.js"
      ]
this would be enough.

sk77
Posts: 62
Joined: 18 Sep 2016, 18:30

08 Feb 2017, 18:31

everything is resolved

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

08 Feb 2017, 22:04

Glad to hear that.

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests