Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

'chainName' does not exist in type 'MeshContext' | cross-chain-extension

Aperta
#286 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
graphql, typescript
Ambito
api

Direzione di ricerca

Reproduce the cross-chain query build failure from the linked CodeSandbox, focusing on resolvers.ts and the @graphprotocol/client-cli and @graphprotocol/client-add-source-name versions shown. Compare the working older versions with the latest versions and verify that the cross-chain example builds without the MeshContext chainName type error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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:

"@graphprotocol/client-add-source-name": "1.0.2",
"@graphprotocol/client-cli": "2.1.1",

Also, you can check the example of the error in codesandbox https://codesandbox.io/s/musing-zhukovsky-2mzu0f?file=/resolvers.ts
image

Lingua principale
TypeScript
Stelle
186
Fork
49
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di graphprotocol/graph-client

Tutte le issue di graphprotocol/graph-client

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.