0

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
            }
        }
Ungaro
  • 522
  • 6
  • 15
  • `require('load-grunt-tasks')(grunt, {pattern: ['grunt-*', '@*/grunt-*', "!grunt-contrib-jshint"]});` try this. and please double check your file paths. – Hardik Shah Aug 23 '18 at 08:32

1 Answers1

0

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

options: {
            '-W069': false,
            'reporterOutput': "",
            'esnext': true
        }
Ungaro
  • 522
  • 6
  • 15