JsHint Error in Gruntfile

176 Views Asked by At

I get the following error after having updated VS2017: "Warning: The "path" argument must be of type string. Received type object. Use --force to continue." The jshint section of my Gruntfile:

jshint: {
            files: ['temp/*.js',
                'Scripts/common.js',
                'Scripts/renderImage.js',
                'Scripts/classifEditPreamble.js',
                'Scripts/displayPreamble.js',
                'Scripts/editionFilter.js',
                'Scripts/newRegistration.js',
                'Scripts/adminPanel.js'],
            options: {
                '-W069': false,
                'esnext': true
            }
        }
1

There are 1 best solutions below

0
Ungaro On

Adding one line (reporterOutput) to options solved the problem. The error message is misleading!

options: {
            '-W069': false,
            'reporterOutput': "",
            'esnext': true
        }