Open tal-rofe opened 2 years ago
Same issue here, since updating @types/react
. Temporarily fixed by downgrading @types/react
from 18.0.5
to 17.0.43
Same issue here. I suspect it might be related to react types removing the children
prop from the FC
type. After updating @types/react
my codebase as absolutely filled with these warnings.
Same issue here. I suspect it might be related to react types removing the
children
prop from theFC
type. After updating@types/react
my codebase as absolutely filled with these warnings.
Can you specify your changes/fix please?
What is the @types/react
version you used to fix it?
Moreover, how does your code look like with this "children" issue now?
@tal-rofe does my comment above answer your first two questions?
@tal-rofe does my comment above answer your first two questions?
I know it will solve it. I got a Renovate upgrade PR which was failed due to the error described. Right now my application works with lower version.
My wish is to have it working with higher versions of course
Will try to fix this asap, will also accept PR's if someone solves it before me :)
@fisshy is following up with the conversation above. Is this issue fixed? I'm getting the same issue now also
@fisshy is following up with the conversation above. Is this issue fixed? I'm getting the same issue now also
No sorry, it has not been fixed.. I must have forgotten it.
@fisshy This doesn't seem to be fixed yet, are there any news on this?
Temporary Fix:
Add react 18 as resolution in your package.json
to force the use of react 18 for react-scroll:
"resolutions": { "@types/react": "^18.0.28" }
Are there any updates on this?
@calebwilson706 can you try with the following in your package.json
?
"devDependencies": {
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
}
Thanks.
I have the following error when trying to use either in JSX:
Simple code:
Versions: