viem compile error, no direct calling of the functions, no typescript errors #1702
Replies: 4 comments 4 replies
-
Do you have a minimal reproducible example I can take a look at? |
Beta Was this translation helpful? Give feedback.
-
Hey I do have the same issue. just installed the package and running tsc. |
Beta Was this translation helpful? Give feedback.
-
I have the same issue here (15 errors) my
|
Beta Was this translation helpful? Give feedback.
-
I just had to still set skipLibCheck to true. Just in case. |
Beta Was this translation helpful? Give feedback.
-
when I run
npm run compile
(which just runstsc
), I'm getting 6 errors like this:node_modules/viem/_types/utils/formatters/transaction.d.ts:26:1502 - error TS2536: Type 'K_2' cannot be used to index type '{ [K_3 in keyof TransactionEIP2930<bigint, number, boolean, "eip2930"> as K_3 extends keyof TOverrideReturnType ? TOverrideReturnType[K_3] extends void ? never : K_3 : K_3]: K_3 extends keyof TOverrideReturnType ? TOverrideReturnType[K_3] : TransactionEIP2930<...>[K_3]; } & TOverrideReturnType'.
Relevant files:
package.json
index.ts (the only typescript file)
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions