bcoe / npm-typeahead

A tiny web-app that exposes typeahead search functionality for packages on http://www.npmjs.org.
4 stars 6 forks source link

$ is not defined when using jQuery via Browserify #10

Open zeke opened 10 years ago

zeke commented 10 years ago

@bcoe I'm trying use npm-typeahead with a browserify-required version of jQuery, but I think there's a problem with the load order.

I made a little debugging sample at https://github.com/zeke/npm-typeahead-example#readme

The real context is https://github.com/npm/newww/blob/makeover/assets/js/index.js

If this is hard to solve, we can just continue to bundle it as a standalone file.

cc @rockbot

bcoe commented 10 years ago

I'd love to get this working. I'll take a look Monday, perhaps you can show me the load order weirdness in person :)

zeke commented 10 years ago

Will do.