Webpack support for IgniteUI is broken
ChronosSF opened this issue · comments
Description
Usage of global jQuery in infragistics.util.jquery.js breaks Webpack support.
- ignite-ui version: 18.1, 18.2, 19.1
- browser: n/a
Steps to reproduce
- Create a new React app from IgniteUI CLI, add any component from the suite
- Attempt to run it
- Console error: jQuery is not defined
Result
the view doesn't show the component added, an error is thrown
Expected result
no errors
Attachments
n/a
Broken with jQuery 3.3.1 support changes:
jQuery.fn.extend( {
jQuery.offset.setOffset( this, options, i );
if ( jQuery.css( elem, "position" ) === "fixed" ) {
should use the passed down $ instead
$.fn.extend({
$.offset.setOffset( this, options, i );
if ( $.css( elem, "position" ) === "fixed" ) {
As with the other extensions in the file.
I have not listed all occurences of this issue. Please, search and replace all occurences of using global jQuery
in the code.