I'm working on a react project with typescript (set up with create-react-script
).
Following the doc I've installed react-query with
yarn add @tanstack/react-query
But I keep getting the typescript error: Cannot find module '@tanstack/react-query' or its corresponding type declarations.
Any idea of what I might be missing ?
While I could downgrade to react-query v3 as suggested here, I'd rather have the v4 working. Thanks for your help !
I tried
Conclusion to the story: I had misconfigured my docker compose volume. So, the package was installed in the container but not in local which explained the error in my IDE.
Sorry if I made someone lose his/her time and I hope it might still be of some use to others.