Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't parse wagmi dependency. #633

Open
hoangong opened this issue Jun 23, 2024 · 0 comments
Open

Couldn't parse wagmi dependency. #633

hoangong opened this issue Jun 23, 2024 · 0 comments

Comments

@hoangong
Copy link

hoangong commented Jun 23, 2024

This is the error:

[error] Phase1ReadTypescript.scala:72 message Couldn't parse: Parse error at 19.27 ''>'' expected but identifier TTypedData found [file => ../_types/accounts/types.d.ts, thread => 244, project => frontend, ms => 25044, phase => typescript, id => viem]com.olvind.logging.Logger$LoggedException: Couldn't parse: Parse error at 19.27 ''>'' expected but identifier TTypedData found

The type that caused the issue is:

    signTypedData: <const TTypedData extends TypedData | {
        [key: string]: unknown;
    }, TPrimaryType extends string = string>(typedData: TypedDataDefinition<TTypedData, TPrimaryType>) => Promise<Hash>;

I think the source code is here https://github.com/wevm/viem/blob/main/src/accounts/types.ts#L43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant