-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Npm install: isArray error when using Browserify #872
Comments
I'm not overly familiar with browserify so I'm not sure what's going on. If you have't figured this out already, your best bet is to ask on Stack Overflow. BTW, if you have figured it out, it'd be great if you could share what the issue was for future reference. |
@joshhornby I got this too. Typeahead is trying to inject jquery from window.jQuery. So you could do one of a few things:
This is definitely a bug for the npm package though. |
there just need to be an AMD version of Bloodhound and Typeahead |
https://github.com/umdjs/umd anyone? |
so how do we use this with browserify/webpack/jspm or is that still not a thing? |
It's still not a thing, really. This package is no longer maintained. But luckily somebody forked it and is maintaining it here: https://github.com/corejavascript/typeahead.js And that one can be imported (at least using webpack) and seems to work great. |
I am using Browserify and trying to require the npm package of typeahead.js
When I run this in the browser I get the following error:
Any ideas? Guessing it is an issue with jQuery not being loaded correctly?
The text was updated successfully, but these errors were encountered: