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
using jQuery plugins with browserify: jQuery is not defined #868
Comments
I think you need Browserify Shim |
You should just do |
@domenic You my friend are awesome! |
Was this resolved. Running into same issue even with shim. I have this in my shim
|
jQuery-bridget worked for me, though the plugin I was using is CommonJS compatible, and didn't need to be "shimmed". import $ from "jquery";
import jQueryBridget from "jquery-bridget"
import Masonry from 'masonry-layout';
// make Masonry a jQuery plugin
$.bridget( 'masonry', Masonry ); |
This one still works!! |
I am trying to use browserify with jQuery and a jQuery plugin like so:
I build the final file using gulp (not sure if this matters):
Anyway when I run in the browser this last line from the
stellar.jquery.js
file throws a "jQuery is not defined" error:What's the best way to use jQuery plugins with browserify?
The text was updated successfully, but these errors were encountered: