T
TanStack•2y ago
foreign-sapphire

Cannot find module '@tanstack/react-query'

hello , someone can help me ? My error : webpack compiled with 1 error and 1 warning ERROR in src/pages/Radar/useFilterRadar.tsx:1:26 TS2307: Cannot find module '@tanstack/react-query' or its corresponding type declarations.
1 | import { useQuery } from '@tanstack/react-query';
| ^^^^^^^^^^^^^^^^^^^^^^^ 2 | import { useState } from 'react'; 3 | 4 | import getCategories from '../../api/getCategories'; The version : "@tanstack/react-query": "^4.36.1",
4 Replies
optimistic-gold
optimistic-gold•2y ago
npm i
foreign-sapphire
foreign-sapphireOP•2y ago
I hope your answer is a joke
optimistic-gold
optimistic-gold•2y ago
I hope your question is a joke. How could anybody possibly help you?
conscious-sapphire
conscious-sapphire•2y ago
folks, please keep it civil here 🙂 The question has not enough information to give a good answer. It's best if you provide a minimal reproduction please

Did you find this page helpful?