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

Warning: Object function () { ... } has no method 'indexOf' in verbose mode #1

Closed
metrip opened this issue Oct 15, 2014 · 1 comment

Comments

@metrip
Copy link

metrip commented Oct 15, 2014

When using the imperative-style configuration syntax with Grunt in verbose mode, a Warning is given and processing stopped.

% grunt -v gulp:foo
[...]
Running "gulp:foo" (gulp) task
Verifying property gulp.foo exists in config...OK
Warning: Object function () {
          return gulp.src('foo').pipe(bar()).pipe(gulp.dest('bar'));
        } has no method 'indexOf' Use --force to continue.

Aborted due to warnings.

Configuration:

module.exports = function(grunt) {
  var gulp = require('gulp');
  grunt.loadNpmTasks('grunt-gulp');
  grunt.initConfig({
    gulp: {
      foo: function() {
        return gulp.src('foo').pipe(bar()).pipe(gulp.dest('bar'));
      }
    }
  });
  grunt.registerTask('default', ['gulp:foo']);
};
@shama
Copy link
Owner

shama commented Oct 15, 2014

Looks like it's an issue with grunt with verbose not ignoring functions passed as patterns. Submitted a PR to grunt to fix. Thanks!

@shama shama closed this as completed Oct 15, 2014
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