Navigation Menu

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: Cannot call method 'indexOf' of undefined Use --force to continue. #35

Closed
randomailer opened this issue Jun 4, 2013 · 8 comments

Comments

@randomailer
Copy link

module.exports = function (grunt) {
grunt.initConfig({

    closureBuilder: {
        options: {
            closureLibraryPath: 'web-app/s/js_src/outer',
            builder: 'web-app/s/js_src/outer/closure/bin/build/closurebuilder.py',

            root: ['web-app/s/js_src/outer','web-app/s/js_src/inner'],

            compilerFile: 'web-app/s/js_src/outer/closure/bin/compiler.jar',
            output_mode: 'compiled',
            compile: true,

            inputs: [
                'web-app/s/js_src/inner/'
            ],

            namespaces: ['ic.App'],

            compilerOpts: {
                warning_level: 'verbose',
                compilation_level: 'ADVANCED_OPTIMIZATIONS'
            }
        },

        application: {
            dest: 'web-app/s/js/application.js'
        },
    }
});

grunt.loadNpmTasks('grunt-closure-tools');
grunt.registerTask('compile', 'closureBuilder:application');

}

{
"name": "IntellicamsFrontEndBuild",
}

@thanpolas
Copy link
Owner

Please include an output of grunt using the --stack option

@randomailer
Copy link
Author

TypeError: Cannot call method 'indexOf' of undefined
at /Users/Valentine/projects/web/node_modules/grunt/lib/grunt/file.js:55:29
at Array.forEach (native)
at processPatterns (/Users/Valentine/projects/web/node_modules/grunt/lib/grunt/file.js:53:34)
at Object.file.expand (/Users/Valentine/projects/web/node_modules/grunt/lib/grunt/file.js:110:17)
at Object.builder.validateFileObj (/Users/Valentine/projects/web/node_modules/grunt-closure-tools/lib/libBuilder.js:67:28)
at /Users/Valentine/projects/web/node_modules/grunt-closure-tools/tasks/closureBuilder.js:40:22
at Array.forEach (native)
at Object.closureBuilder (/Users/Valentine/projects/web/node_modules/grunt-closure-tools/tasks/closureBuilder.js:37:16)
at Object. (/Users/Valentine/projects/web/node_modules/grunt/lib/grunt/task.js:258:15)
at Object.thisTask.fn (/Users/Valentine/projects/web/node_modules/grunt/lib/grunt/task.js:78:16)

@thanpolas
Copy link
Owner

Ok, you are missing the 'src' property, i'll have to patch against that.

Add a 'src' option and you'll b ok

@randomailer
Copy link
Author

src to the options?

@thanpolas
Copy link
Owner

No, after 'dist', see the docs

@randomailer
Copy link
Author

ohh thanks, its work)

@thanpolas
Copy link
Owner

Need to fix the exception, reopening the issue...

@thanpolas thanpolas reopened this Jun 4, 2013
@thanpolas
Copy link
Owner

closing due to inactivity, feel free to re-open if the issue persists.

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