-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have an error in this, TypeError: _this.$instance.slick is not a function #38
Comments
Same issue!!! |
same |
1 similar comment
same |
Does anyone resolved it? |
same |
same issue any |
Can anyone suggest how to fix this? |
I had the same issue and this is how I fixed it. Open the ngx-slick.umd.js file (which can be found in this location - node_modules\ngx-slick) jQuery.noConflict(); and then replace these lines: jQuery(_this.el.nativeElement)[0].innerHTML = ''; with these lines (i.e. change jQuery to $): $(_this.el.nativeElement)[0].innerHTML = ''; Hope this helps. |
@shansubra is we need to compile ngx-slick.umd.js again for minification or something else ? |
@shansubra thanks its solve the issue. |
Thanks your solution solved my problem |
@paulpenafiel Glad that it worked for you. |
Pls guide me.
ThumbSliderComponent.html:70 ERROR TypeError: _this.$instance.slick is not a function
at eval (ngx-slick.umd.js:78)
at ZoneDelegate.invoke (zone.js:388)
at Zone.run (zone.js:138)
at NgZone.runOutsideAngular (core.js:4708)
at SlickComponent.initSlick (ngx-slick.umd.js:70)
at SlickComponent.addSlide (ngx-slick.umd.js:113)
at SlickItemDirective.ngAfterViewInit (ngx-slick.umd.js:256)
at callProviderLifecycles (core.js:12748)
at callElementProvidersLifecycles (core.js:12715)
at callLifecycleHooksChildrenFirst (core.js:12698)
The text was updated successfully, but these errors were encountered: