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

_.detect is not a function - detect is deprecated in lodash 4.0.0+ #70

Open
DanteRPaz opened this issue Sep 5, 2019 · 0 comments · May be fixed by #71
Open

_.detect is not a function - detect is deprecated in lodash 4.0.0+ #70

DanteRPaz opened this issue Sep 5, 2019 · 0 comments · May be fixed by #71

Comments

@DanteRPaz
Copy link

DanteRPaz commented Sep 5, 2019

When you try to create a new bucket using the s3 service the program is unable to detect if it already exists because _.detect method is deprecated in lodash 4.0.0 and on, resulting in the following error:

Running "s3:build" (s3) task
##vso[task.debug]load strings from: F:\Desarrollo\vewd-app-base\node_modules\vsts-task-lib\lib.json
##vso[task.debug]load loc strings from: F:\Desarrollo\vewd-app-base\node_modules\vsts-task-lib\Strings\resources.resjson\en-US\resources.resjson
##vso[task.debug]task result: Failed
##vso[task.complete result=Failed;]Unhandled: _.detect is not a function
Unhandled: _.detect is not a function

It needs to be replaced with _.find method for it to work.

More info here https://github.com/lodash/lodash/wiki/Deprecations

Cheers.

@Igrom Igrom linked a pull request Dec 11, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant