Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jQuery not defined when using with Create React App #61

Open
kimfucious opened this issue Jul 11, 2019 · 0 comments
Open

jQuery not defined when using with Create React App #61

kimfucious opened this issue Jul 11, 2019 · 0 comments

Comments

@kimfucious
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant