jQuery UI: "base is not a constructor"
Asked Answered
F

1

5

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?

Ferrel answered 14/6, 2018 at 11:20 Comment(1)
Also had this problem with jQRangeSlider 5.5.0. Your solution works :)Oriane
F
7

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.

Ferrel answered 18/7, 2018 at 15:35 Comment(1)
And the same thing with yarn!Cannabis

© 2022 - 2024 — McMap. All rights reserved.