【发布时间】:2021-02-02 15:32:57
【问题描述】:
我继承了一个旧的 AngularJs 应用程序,它使用了旧工具:bower 和 grunt。
当我运行grunt serve --reload 时,我收到以下警告消息:
WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: ~2.3.2
YOUR TYPESCRIPT VERSION: 2.2.2
Please only submit bug reports when using the officially supported version.
这很奇怪,因为我使用的是最新版本的 Typescript:
tsc --version
Version 4.1.3
我假设 typescript 安装在本地。有可能吗?
如何查看已安装的工具版本(tsc 和 eslint)?
如何升级?值得吗?
编辑:依赖列表
> npm list
foo@16.17.12 /Users/llaporte/workspace/foo
├── @types/angular-animate@1.5.9
├── @types/angular-gettext@2.1.32
├── @types/angular-material@1.1.58
├── @types/angular-sanitize@1.3.7
├── @types/angular-ui-router@1.1.40
├── @types/angular@1.6.43
├── @types/es6-shim@0.31.35
├── @types/jasmine@2.8.6
├── @types/jquery@2.0.49
├── @types/ramda@0.25.51
├── @types/underscore.string@0.0.30
├── @types/underscore@1.8.7
├── @types/urijs@1.15.36
├── @typescript-eslint/eslint-plugin@4.14.2
├── @typescript-eslint/parser@4.14.2
├── grunt-bar@1.2.0 (git+http://xxx/xxx/grunt-bar.git#a6b7624aeea9ea324e92a9e8971feb67ab9d0346)
└── typescript@4.1.3
编辑:咕噜版本
我正在使用“旧”版本的 grunt:
> grunt --version
grunt-cli v0.1.13
grunt v0.4.5
【问题讨论】:
-
这是一种永远不会消失的传染病。
标签: typescript gruntjs eslint