You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
browserify require is broken when jQuery versions mismatch #39
Just encountered a problem when requiring hideshowpassword using Browserify.
Given that I need to support IE8, jQuery is defined as ^1.11.3 in my package.json.
Since you have also added jQuery as dependency, and that the two versions mismatch, the hideshowpassword function will be attached to your jQuery instance, instead of mine, making it unavailable from my code.
Why jQuery has been added as production dependency, given that the function is attached to $.fn ?
changed the title [-]require using browserify is broken when jQuery versions mismatch[/-][+]browserify require is broken when jQuery versions mismatch[/+]on Sep 26, 2015
I can confirm when using an earlier version of jQuery than what's defined in this module's package.json that two jQuery libraries are bundled. I'll investigate further, I suspect our package.json will need to be updated.
@jeremylevy I have a potential fix pushed to the fix-jquery-dep-ver branch. You can try this locally by removing your current hideshowpassword dependency, and re-installing with the following command:
Hello,
Just encountered a problem when requiring
hideshowpasswordusing Browserify.Given that I need to support IE8, jQuery is defined as
^1.11.3in mypackage.json.Since you have also added jQuery as dependency, and that the two versions mismatch, the
hideshowpasswordfunction will be attached to your jQuery instance, instead of mine, making it unavailable from my code.Why jQuery has been added as production dependency, given that the function is attached to
$.fn?