smies / sails-generate-bower

MIT License
18 stars 5 forks source link

Bower dependencies are not resolved correctly #5

Open PandaWhisperer opened 9 years ago

PandaWhisperer commented 9 years ago

I used this generator in order to install bootstrap in my Sails app. Bootstrap depends on jQuery, so it automatically gets installed as dependency. However, the sails-linker doesn't seem to know about the bower dependency tree, so it ends up including the scripts in alphabetical order, placing jQuery after bootstrap. When I load my app in the browser, I get the error message

Uncaught TypeError: $ is not a function

as you'd expect.

narangrishab-cmu commented 5 years ago

@PandaWhisperer did you find a fix for this?

PandaWhisperer commented 5 years ago

@narangrishab-cmu nope. But I haven't really done any JS backend development in the last few years anyways.

Since bower has been deprecated widely in favor of webpack, I imagine this package isn't really relevant anymore, anyways.