Skip to content

Module '"wagmi"' has no exported member 'useQuery'.ts(2305) #4017

Closed Answered by wahabshah21
wahabshah21 asked this question in Q&A
Discussion options

You must be logged in to vote

I have resolved it. So the implementation and import has been changed. Now useQuery is being imported from wagmi/query instead of just wagmi so like the following

import { useQuery } from "wagmi/query"

also now it expects an object as argument instead of separate 3 arguments.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wahabshah21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant