Spea / SpBowerBundle

Symfony2 Bundle to handle asset dependencies with bower
231 stars 44 forks source link

jQuery Migrate dependency not installed #100

Closed Bkelso closed 9 years ago

Bkelso commented 10 years ago

Hello,

I added "jquery-migrate": "latest" to my bower file and then used sp:bower:install successfully.

However, symfony throws an exception saying that the jquery_migrate_js asset doesn't exist. I installed several other jquery-related libraries without any issue, and given the lack of error message, it's quite hard for me to figure what caused this.

Spea commented 10 years ago

Normally every bower package defines its main file in the bower.json (as described here)

  • main string or array: The primary endpoints of your package.

Sadly the package jquery-migrate does not define any of this, thus this bundle is not able to determine which file to use. But you are still able to add this file by yourself, just use something like this: @YourBundle/Resources/public/components/jquery-migrate/jquery-migrate.min.js

I will try to find a way so that the error behind this is much clearer.

bassrock commented 10 years ago

Same thing for Modernizr

Spea commented 9 years ago

not a problem of this bundle