I got this error when I tried to add a jquery library.
{
test: require("path").resolve("./main/static/src/application.js"),
loader: 'imports-loader?this=>window,$=jquery!./main/static/src/vendor/jquery-ui/ui/widgets/draggable.js'
}
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
'window.jQuery': 'jquery',
'window.$': 'jquery',
io: 'socket.io-client',
_:'underscore',
moment:"moment",
})
ERROR:
ERROR in jQuery is not defined