Open kawazoe opened 10 months ago
Same for me
Still the case for me too.
same here, but it is happening since I tried using react 19-rc in my nextjs app. Main reason I am trying to use release candidate is I wanna jump on Nextjs 15 that is just released
The typescript types for
RelayEnvironementProvider
doesn't appear to be compatible with@types/react@18.2.48
. React did some changes to how JSX element types are declared last year and recommended to useReactNode
instead ofJSX.Element
orReactElement
.Trying to update to the latest version of react's types causes components that uses RelayEnviornementProvider to stop compiling with the following error:
I didn't provide a specific repro project as I feel this error is self explaining. I tried the glitch link but the react and relay version that are installed is very old. It's also trivial to take any existing up-to-date react project which should use RelayEnvironementProvider and install the correct version of react's types.