You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compilation errors occur primarily in the node_modules/viem/_types/utils/formatters/transaction.d.ts
and node_modules/viem/_types/utils/formatters/transactionRequest.d.ts
files.
These errors hinder the compilation process and need to be addressed for smooth integration with viem version 2.7.11. errors.txt
The text was updated successfully, but these errors were encountered:
Spacylion
changed the title
bug: TypeScript compilation errors
bug: Type 'K' cannot be used to index type
Feb 20, 2024
This issue has been locked since it has been closed for more than 14 days.
If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Viem version. If you have any questions or comments you can create a new discussion thread.
Is there an existing issue for this?
Package Version
2.7.11
Current Behavior
When attempting to compile TypeScript files with viem version 2.7.11, a series of errors are encountered, preventing successful compilation.
Expected Behavior
I expected the TypeScript files to compile successfully without encountering any errors.
Steps To Reproduce
Full explanation:
Reproducing TypeScript Compilation Error with viem
This guide will walk you through the steps to reproduce the TypeScript compilation error when using the viem library.
Prerequisites
Before starting, ensure that you have Node.js and npm installed on your system.
Steps
Create a new directory and navigate into it:
mkdir VIEM_TEST cd VIEM_TEST
Initialize a new npm project:
Install the viem library:
Create a TypeScript file named
index.ts
with the following content:Create a
tsconfig.json
file with the following configuration:Run the TypeScript compiler:
You should see the following error:
Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
https://github.com/Spacylion/viem_test
Anything else?
The compilation errors occur primarily in the
node_modules/viem/_types/utils/formatters/transaction.d.ts
and
node_modules/viem/_types/utils/formatters/transactionRequest.d.ts
files.
These errors hinder the compilation process and need to be addressed for smooth integration with viem version 2.7.11.
errors.txt
The text was updated successfully, but these errors were encountered: