English 中文(简体)
Parsing error: DeprecationError: originalKeywordKind has been deprecated since v5.0.0 and can no longer be used
原标题:

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?

问题回答

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.





相关问题
How to use one react app into another react app?

I have two react apps, parent app and child app. and child app have an hash router. I have build the child app using npm run build, It creates build folder. That build folder moved into inside the ...

how to get selected value in Ant Design

I want to print the selected value, and below is my option list: const vesselName = [ { value: 0 , label: ALBIDDA , }, { value: 1 , label: ALRUMEILA , }, { value: 2 ,...

How to add a <br> tag in reactjs between two strings?

I am using react. I want to add a line break <br> between strings No results and Please try another search term. . I have tried No results.<br>Please try another search term. but ...

热门标签