你好,我的终端出现了一些错误,提示我需要使用4.4.0版本,而我当前的版本是...
在我的项目中,我的当前TypeScript版本如下所示:
"typescript": "^4.4.2",
"typedoc": "^0.21.8",
"react-scripts": "^3.4.4",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
此外,当我试图运行npm run dev命令或npx eslint .时,会显示以下错误:
=============
WARNING: You are currently running a version of TypeScript which is not
officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.4.0
YOUR TYPESCRIPT VERSION: 4.4.2
Please only submit bug reports when using the officially supported
version.
=============
我该如何解决这个问题?我在谷歌上做了很多研究,但是什么都没用。如果能得到帮助将会非常感激。
"@typescript-eslint/eslint-plugin": "^5.25.0",
改为"@typescript-eslint/eslint-plugin": "^5"
),然后运行npm update @typescript-eslint/eslint-plugin
等命令。 - til