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
Hello there!
I found the bug in latest versions of @graphprotocol/client-cli and @graphprotocol/client-add-source-name. When I try to implement cross-chain query like in your example I can't build my project because I get typescript error:
Type '{ chainName: string; sushiswap: { Query: SushiswapTypes.QuerySdk; Mutation: SushiswapTypes.MutationSdk; Subscription: SushiswapTypes.SubscriptionSdk; }; [MESH_CONTEXT_SYMBOL]: true; pubsub: MeshPubSub; cache: KeyValueCache<...>; logger: Logger; }' is not assignable to type 'MeshContext'.
Object literal may only specify known properties, and 'chainName' does not exist in type 'MeshContext'.
I did small investigation and found out that all works fine with old versions:
I have it, but it doesn't help. I checked types in .graphclient folder and the context indeed has chainName. But for some reason, this error still exists.
Hello there!
I found the bug in latest versions of
@graphprotocol/client-cli
and@graphprotocol/client-add-source-name
. When I try to implement cross-chain query like in your example I can't build my project because I get typescript error:I did small investigation and found out that all works fine with old versions:
Also, you can check the example of the error in codesandbox https://codesandbox.io/s/musing-zhukovsky-2mzu0f?file=/resolvers.ts
The text was updated successfully, but these errors were encountered: