I've installed jQuery and jQuery UI with npm
. Upon attempting to require('jquery-ui/ui/widgets/selectable')
in one of my own JS modules, I get the following error message:
TypeError: base is not a constructor (widget.js:108)
What am I missing?
To solve the issue, I also had to require('jquery-ui/ui/widgets/mouse')
which is a dependency for selectable
but not loaded automatically when requiring the latter.