ngx-admin: jQuery(...).slimScroll is not a function

how to solve the problem log like this:

error_handler.js:46EXCEPTION: Uncaught (in promise): Error: Error in ./BaMenu class BaMenu - inline template:1:64 caused by: jQuery(...).slimScroll is not a function
TypeError: jQuery(...).slimScroll is not a function
    at BaSlimScroll._destroy (http://localhost:3000/main.bundle.js:38500:48)
    at BaSlimScroll._scroll (http://localhost:3000/main.bundle.js:38493:14)
    at BaSlimScroll.ngOnChanges (http://localhost:3000/main.bundle.js:38490:14)
    at _View_BaMenu0.detectChangesInternal (BaMenu.ngfactory.js:118:52)
    at _View_BaMenu0.AppView.detectChanges (http://localhost:3000/vendor.bundle.js:36729:14)
    at _View_BaMenu0.DebugAppView.detectChanges (http://localhost:3000/vendor.bundle.js:36834:44)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 4
  • Comments: 17

Most upvoted comments

It solved. Try install dependencies with npm and node with this specific versions:

$ node -v; npm -v
v5.0.0
3.10.9

It’s Working For Me

npm install jquery-slimscroll

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0"></script>
<script type="text/javascript" src="libs/jquery.slimscroll.min.js"></script>

i am facing the same issue. someone plz help me.