When upgrading an existing React project I’m getting the following error at line 0 of every .tsx file.
Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead.
How can I diagnose and remove the error?
2
Answers
For me downgrading the versions of typescript and eslint worked.
typescript: 5.1.6
eslint: 8.47.0
Upgrading
@typescript-eslint/parser
to v6.x resolved the problem for me.See https://github.com/typescript-eslint/typescript-eslint/issues/7155#issuecomment-1692384149 for additional details.