nae*_*mgg 16 node.js typescript reactjs next.js
编译我的项目后,我收到下面粘贴的错误,这是什么意思以及如何修复它?
- info Linting and checking validity of types
DeprecationWarning: 'originalKeywordKind' has been deprecated since v5.0.0 and will no longer be usable after v5.2.0. Use 'identifierToKeywordKind(identifier)' instead.
Run Code Online (Sandbox Code Playgroud)
我使用的是 nextjs 13.4,我的依赖项如下:
- info Linting and checking validity of types
DeprecationWarning: 'originalKeywordKind' has been deprecated since v5.0.0 and will no longer be usable after v5.2.0. Use 'identifierToKeywordKind(identifier)' instead.
Run Code Online (Sandbox Code Playgroud)
Leo*_*nto 11
只需更新@typescript-eslint/parser到最新版本(^6.6.0),它是正在导入的间接依赖项tsutils。
此外,这些依赖项应该位于devDependencies以下部分:
"@types/bcryptjs": "^2.4.2",
"@types/node": "^20.4.5",
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7",
"eslint": "^8.45.0",
"eslint-config-next": "^13.4.12",
"typescript": "^5.1.6"
Run Code Online (Sandbox Code Playgroud)
小智 4
这指的是 Typescript 中的更改:https://github.com/microsoft/TypeScript/blob/main/src/deprecatedCompat/5.0/identifierProperties.ts#L28
还有一些东西,可能是你的依赖项之一,还没有适应这一变化,但这只是一个弃用警告,所以目前不用担心。
| 归档时间: |
|
| 查看次数: |
21113 次 |
| 最近记录: |