bootstrap-iconpicker icon indicating copy to clipboard operation
bootstrap-iconpicker copied to clipboard

Not working with Webpack

Open rodrigoreyes79 opened this issue 8 years ago • 2 comments

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

rodrigoreyes79 avatar May 13 '16 11:05 rodrigoreyes79

I get the same errors. Any ideas ?

lewma avatar Dec 16 '16 17:12 lewma

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

victor-valencia avatar Aug 16 '17 14:08 victor-valencia