generator-cg-angular icon indicating copy to clipboard operation
generator-cg-angular copied to clipboard

Jshint failing

Open jones139 opened this issue 7 years ago • 0 comments

On a fresh install on Centos 7, grunt build etc. failed with the following:

Running "jshint:main" (jshint) task
Warning: Path must be a string. Received null Use --force to continue.
Aborted due to warnings.

After a bit of searching I found a suggestion about it being the reporterOutput option, so modifying the Gruntfile.js to include:

    jshint: {
      main: {
        options: {
            jshintrc: '.jshintrc',
        reporterOutput:""
        },
        src: createFolderGlobs('*.js')
      }
    },

seems to have got it working. [I'm new to angular/grunt etc. so feel free to close this issue if it is me doing something wrong!]

jones139 avatar Oct 27 '16 17:10 jones139