Skip to content
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

Wiredep not seeing lodash in bower.json #275

Open
vijayb opened this issue Oct 4, 2017 · 2 comments
Open

Wiredep not seeing lodash in bower.json #275

vijayb opened this issue Oct 4, 2017 · 2 comments

Comments

@vijayb
Copy link

vijayb commented Oct 4, 2017

Hey guys, thanks for the plugin. I'm working on a project where wiredep is used to inject bower_components into a vendor.js file. However lodash isn't correctly being included. I'm not a gulp expert but I tracked down the line that's failing in the gulpfile.js to this:

var vendorFiles = wiredep().js;

vendorFiles is then missing lodash. I'm not sure why it's not working and would super appreciate any advice. Here's my bower.json:

{
"name": "PeachDelivery",
"author": "Peach,
"private": "true",
"devDependencies": {
"platform.js": "platform#^1.3.3"
},
"dependencies": {
"jquery": "^3.1.1",
"angular": "^1.5.3",
"angular-resource": "1.5.8",
"ionic": "^1.3.2",
"moment": "^2.14.1",
"moment-timezone": "^0.5.5",
"angular-ui-router": "^0.2.13",
"jquery.cookie": "^1.4.1",
"Ionicons": "ionicons#^2.0.1",
"material-design-icons": "^3.0.1",
"pubnub": "^4.2.5",
"pubnub-angular": "^4.0.2",
"lodash-4.17.4": "lodash#^4.17.4"
},
"resolutions": {
"angular": "1.5.3"
}
}

@vijayb
Copy link
Author

vijayb commented Oct 4, 2017

I managed to figure it out. The reason was the version of lodash. If I pin our version to 4.15.0 it works. Not sure what the difference between the two is, but that's basically it. It's kind of unbelievable how unstable these frontend components are. Almost makes me want to pin every component to a specific version!

@kb-1000
Copy link

kb-1000 commented Feb 22, 2018

Maybe bower.json was removed from lodash?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants