_.contains is not a function
See original GitHub issueWith the new version 2.0.1 I have got an error during file upload which says:
Warning: _.contains is not a function
grunt.initConfig({
aws_s3: {
options: {
region: 'eu-west-1',
uploadConcurrency: 5,
downloadConcurrency: 5,
differential: false
},
upload_immutables: {
options: {
bucket: process.env.APP_BUCKET,
differential: false
},
files: getImmutableFiles("/admin")
}
}
});
grunt.loadNpmTasks('grunt-aws-s3');
Issue Analytics
- State:
- Created 4 years ago
- Reactions:13
- Comments:10 (2 by maintainers)
Top Results From Across the Web
TypeError: contains is not a function in JavaScript
Trying to use the contains() method to check if a value is contained in an array or a string. · Calling the contains()...
Read more >Why is this returning the error .contains() is not a function
Try o.title.includes(this.state.query) instead. contains appears to be deprecated. You should use includes instead.
Read more >How to solve contains is not a function in JavaScript
The “contains is not a function” error occurs when we call a contains() method on a value other than the dom nodes. To...
Read more >TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >node js includes not a function
contains is not a function javascript ... Try o.color.includes(this.color) instead. ... "contains" is deprecated. You should use "includes" instead.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve been alerted via email of this issue. I’ve published 2.0.2 which should fix this. I don’t use Grunt anymore (or this package) so if someone would like to maintain it, please let me know.
You can use this until the owner updates: https://github.com/justinwinslow/grunt-aws-s3