美文网首页
Parsing error: Cannot read prope

Parsing error: Cannot read prope

作者: 前端开发_Eric | 来源:发表于2021-09-07 11:47 被阅读0次

今天遇到一个奇怪的eslint报错

image.png
map of undefined,起初以为是modelAnalyzer有问题,但我里边压根就没有map方法,google了一圈,发现是@typescript-eslint/parser的bug
于是把"@typescript-eslint/parser"版本从"^2.19.0"
更新到了最新的4.31.0,
1、执行命令:
npm i @typescript-eslint/parser@4.31.0 --save-dev
2、重启eslint服务
image.png
报错消失,
完美解决,😺

相关文章

网友评论

      本文标题:Parsing error: Cannot read prope

      本文链接:https://www.haomeiwen.com/subject/zuguwltx.html