-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Description
We've received errors going from 3.3.1 to 3.4.0 with loading jquery through webpack.
I'm noticing that the errors no longer appear after removing the alias we are using in webpack for jquery per this user's SO suggestion #1
resolve: {
alias: {
// Alias `import $ from 'jquery'` to resolve to the src JS file
jquery: 'jquery/src/jquery'
},
},We are loading and using jquery per webpack's suggestion here
// Load jquery
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
}),The error for me is happening when we call jquery-ui "draggable" on a jquery wrapped element.
Cannot read property 'position' of undefined. finalPropName.js:26 which is on the following line var final = jQuery.cssProps[ name ] || vendorProps[ name ];. Upon debugging on that line immediately before the error is thrown, I am seeing that the variable jQuery is just an empty object while window.jQuery is the actual jQuery instance...
Is this a bug and/or undocumented breaking change in the src/jquery.js file of the new version?