sublime-jshint
sublime-jshint copied to clipboard
JSHint: Getting TypeError
I'd appreciate your help ...
On Windows 7, Sublime Text 2
I successfully installed jshint via node.js: npm install -g jshint Then I installed JSHint package in Sublime.
I get the following error when I do CTRL-B in sublime Text 2
C:\Users\ml414c\AppData\Roaming\Sublime Text 2\Packages\JSHint\reporter.js:18
buffer += '[JSHint: ' + results[0].file + ']\n\n';
^
TypeError: Cannot read property 'file' of undefined
at exports.reporter (C:\Users\ml414c\AppData\Roaming\Sublime Text 2\Packages\JSHint\reporter.js:18:37)
at Object.exports.run (C:\Users\xxx\AppData\Roaming\npm\node_modules\jshint\src\cli.js:654:35)
at Object.exports.interpret (C:\Users\xxx\AppData\Roaming\npm\node_modules\jshint\src\cli.js:737:18)
at Object.