-
Notifications
You must be signed in to change notification settings - Fork 61
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
problem on the first example #57
Comments
i discover the problem also |
Are you including jQuery in your app, or is it being injected by 'react-bootstrap-multiselect'? I've changed the code recently due to people wanting to inject their own version of jQuery, so there might be a bug with that part. Do you have a repo I can check out (or an online example)? |
I'm also running into that error. I'm not including jQuery explicitly in my app. |
@aaronkw - what's the actual error message you see in the console? I don't really understand the original bug report without links to code. What bundler are you using (browserify/webpack/rollup)? |
I've got the same issue , the bundler is webpack |
The issue for me is that previously (pre 2.2.0) the 2.1.0: if (typeof window !== 'undefined' && typeof document !== 'undefined') {
//Necessary for Universal Javascript apps
//since JQuery requires a working window
var $ = require('./bootstrap-multiselect.js').init(
require('./bootstrap-dropdown.js').init(
require('jquery')
)
);
} 2.2.0 var bsMultiselect = require('./bootstrap-multiselect.js');
var bsDropdown = require('./bootstrap-dropdown.js');
// setup jQuery
var $;
if (typeof window !== 'undefined' && window && window.jQuery) {
$ = window.jQuery;
} else {
$ = require('jquery');
} |
i get this meesage :
/react-bootstrap-multiselect/lib/bootstrap-dropdown.js:2
[2] if (typeof jQuery.fn.dropdown !== "undefined") return jQuery;
when i write var Multiselect = require('react-bootstrap-multiselect');
what can be the problem?
The text was updated successfully, but these errors were encountered: