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 true has no method 'indexOf' Use --force to continue. #9

Open
joelworsham opened this issue Feb 11, 2015 · 5 comments

Comments

@joelworsham
Copy link

Nothing abnormal going in here.

pot: {
    build: {
        options: {
            text_domain: text_domain,
            dest: 'build/languages/',
            keywords: ['gettext', '__', '_e']
        },
        files: {
            src: ['build/**'],
            expand: true
        }
    }
}
@stephenharris
Copy link
Owner

Try

pot: {
        options: {
            text_domain: text_domain,
            dest: 'build/languages/',
            keywords: ['gettext', '__', '_e']
        },
        files: {
            src: ['build/**'],
            expand: true
        }
}

also note the recent 0.2.1 update: #10.

@joelworsham
Copy link
Author

Same error is occurring.

@stephenharris
Copy link
Owner

Don't know then I'm afraid. Works for me.

@joelworsham
Copy link
Author

Are there any dependencies I could be missing?

@luiz-brandao
Copy link

I'm new to Grunt, but I believe the problem is that this task is not really setup for multitask. When a task is a multitask, Grunt sends different parameters. I tracked down the problem. For it to work properly as a multitask, the code at line 87 should be changed to something like this:

    this.files[0].src.forEach(function(file) {
        if( !grunt.file.isDir( file ) ){
            inputFiles +=  " " + file;
        }
    });

Ref. #12

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

3 participants