4

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?

zepp133
  • 1,542
  • 2
  • 19
  • 23

1 Answers1

6

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.

zepp133
  • 1,542
  • 2
  • 19
  • 23