question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

_.contains is not a function

See original GitHub issue

With 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:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
MathieuLoutrecommented, Jan 13, 2020

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.

2reactions
justinwinslowcommented, Aug 22, 2019

You can use this until the owner updates: https://github.com/justinwinslow/grunt-aws-s3

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found