Closed jaclyngu closed 5 years ago
I assume you installed the image-picker library with npm or yarn? If so, you should do the following:
import 'image-picker'
By the way - you might get a ReferenceError if you don't have jQuery publicly exposed (this is what brought me to this issue actually). In a pinch, the following should work:
global.$ = global.jQuery = require('jquery');
Closing as it looks like this has been resolved
Thanks for this plugin. I am quite a rookie and I want to write $("#category_select").imagepicker({ show_label: true });
in my javascript file (it only contains this single line), but there is no "export" in your source code. So when I compile by Webpack, it keeps giving me the error test_picker.js:2 Uncaught TypeError: $(...).imagepicker is not a function at test_picker.js:2
What should I do?