Skip to content

Typing errors everywhere after upgrading to React v18 #255

Answered by firasrg
firasrg asked this question in Q&A
Discussion options

You must be logged in to vote

Hi again! after doing some tries, I've came to a very good solution, I guess. I've removed @types/react dependency from my package.json file and used the TS built-in typing module for react apps.

  "compilerOptions": {
    "types": [
      "react"
    ],

And all typing errors are gone 🎉!

I'm still waiting to some people here to listen to their thoughts about this approach or maybe other ones. So I don't consider this discussion closed yet.

thanks

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by firasrg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant