Open
Description
ERROR
TypeError: slickness.not is not a function
at angular-slick.js:167
at angular.js:20178
at completeOutstandingRequest (angular.js:6274)
at angular.js:6554
app.js
window.jQuery = require('jquery');
var bootstrap = require('bootstrap/dist/js/bootstrap');
var slick = require('slick-carousel');
import angular from 'angular';
import slickCarousel from 'angular-slick-carousel';
webpack.config.js
entry: {
app: ['babel-polyfill', path.join(__dirname, 'src', 'app/root.module.js') ],
},
new webpack.ProvidePlugin({
jQuery: 'jquery',
$: 'jquery',
jquery: 'jquery',
}),
new HtmlWebpackPlugin({
template: 'src/public/index.ejs',
inject: 'body',
hash: true,
chunks: ['app']
}),
Work around :
Just replace this to header of index.html
<script src="/lib/jquery-2.2.4.min.js"></script>
<script src="/lib/slick.min.js"></script>
But I dont' want to loading more files.
Please advise me
Metadata
Metadata
Assignees
Labels
No labels