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)
same problem.
can somebody help? -___-
同问。。解决了没?
@inankai 没
+1...........
+1 - also getting this.
happen after clone, and npm install
Uncaught (in promise): Error: Error in ./BaMenu class BaMenu - inline template:1:64 caused by: jQuery(...).slimScroll is not a function
It solved.
Try install dependencies with npm and node with this specific versions:
$ node -v; npm -v
v5.0.0
3.10.9
@mmdsharifi thank for the info, on what version of npm/node you were getting the error?
You're welcome! @nnixaa
If try with node 6.x (yarn 0.15 or npm 3.x), you see the errors terminal and after lunch on port 3000 localhost, console error will happen.
Should be fine in the latest version.
i am facing the same issue. someone plz help me.
i am facing the same issue. someone plz help me.
@ducdk What meaning of 'plz'?
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 have the same problem using django adminlte, the problem is django adminlte loads 'adminlte/lib/_scripts.html' at javascript block, you have to load jquery 1.9.0 and slimscroll after.
For example, I donwloaded slimscroll and then I have this on my base.html template:
{% block javascript %}
{% include 'adminlte/lib/_scripts.html' %}
{% endblock %}
{% block extra_foot %}
{% endblock %}
Follow the below steps and it will work definitely.
npm install jquery-slimscroll"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/jquery-slimscroll/jquery.slimscroll.min.js"
],
<div id="content">
<p>Lorem ipsum dolor sit amet, consectetur .... snip</p>
</div>
$('#content').slimScroll({
height: '250px',
color:'#F44336'
});
+1
getting samwe issue in react any updates?