【发布时间】:2019-01-29 13:19:47
【问题描述】:
更新 VS2017 后出现以下错误:“警告:“路径”参数必须是字符串类型。接收到类型对象。使用 --force 继续。” 我的 Gruntfile 的 jshint 部分:
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
}
}
【问题讨论】:
-
require('load-grunt-tasks')(grunt, {pattern: ['grunt-*', '@*/grunt-*', "!grunt-contrib-jshint"]});试试这个。请仔细检查您的文件路径。