获取TypeError:在extract.js文件中执行gulp jshint时,无法读取null的属性'toString'

时间:2015-09-12 04:01:41

标签: jshint polymer-1.0

我在为在Polymer 1.0中创建的我的网络应用程序做gulp时遇到以下错误。我使用了名为akyral-details的第三方Web组件。

  

/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/src/extract.js:14         file.jshint.extracted = jshintcli.extract(file.contents.toString('utf8')                                                                ^   TypeError:无法读取null的属性'toString'       at /Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/src/extract.js:14:62       at module.exports ._。memoize.Minimatch.nocase(/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/src/fileIgnored.js:38:7)       在DestroyableTransform。 (/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/src/extract.js:9:5)       在DestroyableTransform._transform(/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/src/stream.js:26:15)       在DestroyableTransform.Transform._read(/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)       在DestroyableTransform.Transform._write(/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)       at doWrite(/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)       at writeOrBuffer(/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)       在DestroyableTransform.Writable.write(/Users/PVT/Desktop/Sanskar-Marathi/node_modules/gulp-jshint/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)       在PassThrough.ondata(_stream_readable.js:540:20)       在PassThrough.emit(events.js:107:17)       在readableAddChunk(_stream_readable.js:163:16)       在PassThrough.Readable.push(_stream_readable.js:126:10)       在PassThrough.Transform.push(_stream_transform.js:140:32)       在afterTransform(_stream_transform.js:96:12)       在TransformState.afterTransform(_stream_transform.js:74:12)

0 个答案:

没有答案