useReadContract
infinite type instantiation error
#3584
Replies: 4 comments 4 replies
-
Can provide a minimal reproduction? The screenshot isn't helpful. |
Beta Was this translation helpful? Give feedback.
-
Error: Type instantiation is excessively deep and possibly infiniteusing this example code provided in migration guide should reproduce the issue
here Typescript gives this error on contracts property: Environment
|
Beta Was this translation helpful? Give feedback.
-
Ensure you have |
Beta Was this translation helpful? Give feedback.
-
@tmm @on47sky I am also getting the same error, my tsconfig is the default vite one. I am generating hooks using the wagmi cli and get the same error. Could you help? |
Beta Was this translation helpful? Give feedback.
-
I'm converting from v1 to v2, and swapped a Wagmi cli
useReadContract
instance. After the fact, TS was throwing this error: "Type instantiation is excessively deep and possibly infinite." I've never seen this error before, any ideas?Beta Was this translation helpful? Give feedback.
All reactions