magnify icon indicating copy to clipboard operation
magnify copied to clipboard

jQuery not defined when using with Create React App

Open kimfucious opened this issue 5 years ago • 0 comments

Hey, cool stuff.

Any tip on getting this to work in a create-react app?

I've installed the Magnify package via NPM and am trying to use imports. I'm seeing this error when the build crashes, and thinking I may need to be attaching jQuery to the window object or something:

./node_modules/magnify/dist/js/jquery.magnify.js
node_modules/magnify/dist/js/jquery.magnify.js:348
  345 |       init(this);
  346 |     });
  347 |   };
> 348 | })(jQuery);
``console

kimfucious avatar Jul 11 '19 06:07 kimfucious