我已经使用 npm
安装了 jQuery 和 jQuery UI。在我自己的 JS 模块之一中尝试 require('jquery-ui/ui/widgets/selectable')
时,我收到以下错误消息:
TypeError: base is not a constructor (widget.js:108)
我错过了什么?
最佳答案
为了解决这个问题,我还必须 require('jquery-ui/ui/widgets/mouse')
这是 selectable
的依赖项,但不会自动加载当需要后者时。
关于jquery-ui - jQuery 用户界面 : "base is not a constructor",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50856332/