美文网首页
2021-10-15 typescript 版本兼容问题

2021-10-15 typescript 版本兼容问题

作者: gdlooker | 来源:发表于2021-10-15 10:36 被阅读0次

https://stackoverflow.com/questions/62079477/line-0-parsing-error-cannot-read-property-map-of-undefined

您的 TypeScript 版本与您的 eslint 不兼容。您可以通过将这两个依赖项升级到最新版本来修复它。

TypeScript 4.0.5与 4.6.0 版本兼容

"devDependencies": {
  "@typescript-eslint/eslint-plugin": "^4.6.0",
  "@typescript-eslint/parser": "^4.6.0",
}

TypeScript 4.1.5与 4.18.0 版本兼容

"devDependencies": {
  "@typescript-eslint/eslint-plugin": "^4.18.0",
  "@typescript-eslint/parser": "^4.18.0",
}

TypeScript 4.2.4与 4.23.0 版本兼容

"devDependencies": {
  "@typescript-eslint/eslint-plugin": "^4.23.0",
  "@typescript-eslint/parser": "^4.23.0",
}

TypeScript 4.3.2与 4.25.0 版本兼容

"devDependencies": {
  "@typescript-eslint/eslint-plugin": "^4.25.0",
  "@typescript-eslint/parser": "^4.25.0",
}

相关文章

网友评论

      本文标题:2021-10-15 typescript 版本兼容问题

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