bootstrap-iconpicker
bootstrap-iconpicker copied to clipboard
Not working with Webpack
Hi. I am trying to make the iconpicker to work with webpack but seems like it does not. Here is the code I am using:
require('../node_modules/bootstrap-iconpicker/bootstrap-iconpicker/css/bootstrap-iconpicker.min.css');
require("imports?jQuery=jquery!../node_modules/bootstrap-iconpicker/bootstrap-iconpicker/js/iconset/iconset-glyphicon.min.js")
require('imports?jQuery=jquery!../node_modules/bootstrap-iconpicker/bootstrap-iconpicker/js/bootstrap-iconpicker.min.js');
...
$('.btn-iconpicker').iconpicker();
I am getting the following error when clicking on the buttons:
bootstrap-iconpicker.min.js:22 Uncaught TypeError: $this.popover is not a function
bootstrap-iconpicker.min.js:22 Uncaught TypeError: $(...).popover is not a function
I get the same errors. Any ideas ?
Hi @rodrigoreyes79 and @lewma
You need include the jquery
and bootstrap
libraries.
https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js