在升级现有的Reaction项目时,我在每个.tsx文件的第0行收到以下错误.
Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead.
个
如何诊断和删除错误?
在升级现有的Reaction项目时,我在每个.tsx文件的第0行收到以下错误.
Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead.
个
如何诊断和删除错误?
将@typescript-eslint/parser
升级到v6.x为我解决了这个问题.
有关更多详细信息,请参见https://github.com/typescript-eslint/typescript-eslint/issues/7155#issuecomment-1692384149.