Typescript errors in code
Hi i have a wired issue. In all my typescript projects there is like everything marked as a error.
Examples are in the screenshot.
I searched the web and tried a lot of things, like updating ts, modifying the tsconfig and eslint config. But the problem appears in all my projects and in cursor and vscode.
It runs grate but all these red error are a little bit annoying.
3 Replies
Typescript doesn't know JSX exists, you need to enable it, I forget how now.
Did you include
"jsx": "preserve" in your tsconfig?
"jsx": "preserve" in your tsconfig?
maybe this link will help ya:
https://medium.com/@chengbotier1/solve-the-compatibility-issue-of-typescript-node-tsx-c0b2574636eb