Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
Uncaught TypeError: (0 , react_query__WEBPACK_IMPORTED_MODULE_9__.useQuery)(...) is not a function

This is the code I currently have in the project, but I can not even run it because I keep getting the error I brought in the title: Uncaught TypeError: (0, react_query__WEBPACK_IMPORTED_MODULE_9 __. UseQuery) (...) is not a function

The debugger shows that it's coming right from the line where i declared the useQuery object. Any ideas?

import {
  useQuery,
  QueryClient,
  QueryClientProvider,
} from 'react-query';

const queryClient = new QueryClient()
const api = axios.create({
  baseURL: `http://localhost:5000/api`,
});

export default function QueryProvider() {
   return (
     <QueryClientProvider client={queryClient}>
       <App/>
     </QueryClientProvider>
   )
}

  function App() {
  const classes = useStyles();
  const [table, setTable] = useRecoilState(TableProvider);


  const { status, data } = useQuery(
      'todos',
      async () => {
      const res = await api.get("/")
      return res.data
    },
    {
      refetchInterval: 1000,
    }
  )

 return(
 <p>data</p>
 ):
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!