-
Notifications
You must be signed in to change notification settings - Fork 125
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
slickness.not is not a function webpack build #131
Comments
I had the same problem. Put this to my webpack config: new webpack.ProvidePlugin({ And this as my first import before angular: import {$,jQuery} from 'jquery'; |
That's because You need to install it first: Then import it in your app:
|
none of this works. this is going on 2 days. help!.... the only solution I am not sure I tried is |
Hi, had the same problem, it's connected to angular.element() VS $(), as soon as i changed the line 143 of angular-slick.js, all worked fine. here's what i changed to get it to work:
This is true for "angular": "^1.6.6", don't know if the ".not()" existed before or not, But on this jQueryLite version of this angular@1.6.6 it does not exist. Don't know who or how this directive was tested, but this seems like an error everybody should have unless as i stated before, the ".not()" method existed before. Cheers. UPDATE Forgot to mention, you also have to change this line (same concept) |
as @pjsalsantos said, angular works with jqlite; Even with jquery loaded in the project, .not() used inside the directive will bring problems. |
To fix this issue in the mean time, load JQuery BEFORE Angular so angular uses the full JQuery library
This way Angular replaces the jquery-lite library inside If you use a bundling system, check the documentation for ordering your scripts in a similar manner |
ERROR
app.js
webpack.config.js
Work around :
Just replace this to header of index.html
But I dont' want to loading more files.
Please advise me
The text was updated successfully, but these errors were encountered: