Closed zymr-keshav closed 7 years ago
it has been solved when I add gulp-ng-config
inside "devDependencies" block in package.json and run npm install --no-optional
. this will add lodash 3.10.x and now working fine.
This is also an issue with the project I work on. Jenkins builds fail because of the lodash version.
The solution from @zymr-keshav won't work for us since we need gulp-ng-config
as a dependency and not as a devDependency.
Hey @PizzaPete - I assume the best way to reproduce this is to create a project with a 4.x
lodash
dependency along with gulp-ng-config
?
@ajwhite your assumption is correct.
gulp-ng-config.js
has a _.contains
function on line 83 that fails. It might be as simple as changing _.contains
with _.includes
. But I'm not sure if this breaks anything else.
This should be pretty simple right?
@ygrene-austin could be pretty simple. If it is just replacing _.contains
with _.includes
.
The workaround for our team was to use lodash 3.x
i have
"lodash": "~4.0.0"
and"gulp-ng-config": "^1.3.1"
created a task
but when i run
gulp env;
it gives error