You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding "bower": ['backbone'] to a js dependency, I'm getting the following error in my browser console as soon as the libs.js is loaded: "Uncaught TypeError: Cannot read property 'extend' of undefined" where _ is what is undefined.
However, I can properly use _ from the browser console, so underscore.js is indeed loaded.
Any idea why _ would be undefined when simply including/injecting the backbone bower dependency?
Thanks!
gkn
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27069834-adding-backbone-to-dependencies-causes-underscore-error?utm_campaign=plugin&utm_content=tracker%2F8853550&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F8853550&utm_medium=issues&utm_source=github).
The text was updated successfully, but these errors were encountered:
Update: The following manifest.json does load up Backbone and Underscore correctly, but only works when pointing directly to the backbone.min.js file with external: true. Additionally, even though the backbone script is referenced from the libs.js file I want to export, it is actually included in main.js.
Uh oh!
There was an error while loading. Please reload this page.
When adding
"bower": ['backbone']
to a js dependency, I'm getting the following error in my browser console as soon as the libs.js is loaded: "Uncaught TypeError: Cannot read property 'extend' of undefined
" where_
is what is undefined.However, I can properly use
_
from the browser console, so underscore.js is indeed loaded.Here's my manifest.json:
Any idea why
_
would be undefined when simply including/injecting the backbone bower dependency?Thanks!
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27069834-adding-backbone-to-dependencies-causes-underscore-error?utm_campaign=plugin&utm_content=tracker%2F8853550&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F8853550&utm_medium=issues&utm_source=github).gkn
The text was updated successfully, but these errors were encountered: