I\'m using webpack to manage all my assets, when I use this code to require select2 (https://github.com/select2/select2) I got the error
$(...).selec
You can simply do like this :
import $ from 'jquery'; import 'select2'; $('selector').select2(); //selector can be className, ID, tag name , attributeName , etc ...