@types/react types missmatches in useAsyncList #6599
Replies: 2 comments 1 reply
-
That looks like a react 19 types error... which is odd given that you're on react 18 and we haven't released a version built against react 19 types yet. Two things to quickly rule out Can you verify that you have no duplicates of our packages installed. They can be tricky to find, typically a node_modules directory inside another node_modules directory. They can also appear in the lock file if you know how to read them. Can you triple check the react version and types version and make sure there aren't duplicates of that as well. |
Beta Was this translation helpful? Give feedback.
-
I've cross checked the packages and their versions i have only single version of your packages and react, types/react but i'm still getting the error, i kept packages in resolutions too
These are the packages i'm using. I've kept them in resolutions too for checking. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've installed packages with the versions you mentioned in may1st release, but still im getting ts errors in useAsyncList hook.
Can you tell me what i'm missing?
This is a screenshot from my repo with your code

This is screenshot from your repo

package versions
react:"18.1.0"
@types/react:"18.2.28",
I Dont know why you are not getting errors.
NOTE: above packages versions are as same as your repo on may1st release source code.
Beta Was this translation helpful? Give feedback.
All reactions