Skip to content

jQuery not defined when using with Create React App #61

@kimfucious

Description

@kimfucious

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions