'chainName' does not exist in type 'MeshContext' | cross-chain-extension
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- graphql, typescript
- 领域
- api
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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

- 主要语言
- TypeScript
- 星标
- 185
- 派生
- 49
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graphprotocol/graph-client 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
graphprotocol/graph-client#1029 ·
-
难度 5/5 一周以上 新手友好度 25/100
graphprotocol/graph-client#1031 · 4 条评论 ·
-
[Bug] The order data source under sources tab in .graphclientrc.yml affects the query result可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 55/100
graphprotocol/graph-client#1001 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 50/100
graphprotocol/graph-client#991 ·
-
难度 3/5 1-2 天 新手友好度 28/100
graphprotocol/graph-client#957 ·
查看 graphprotocol/graph-client 的全部 Issue
相似的 Issue
-
bug help wanted
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
agent-task risk:low
难度 1/5 1-3 小时 新手友好度 88/100
guyellis/http-status-check#512 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
microsoft/playwright#43327 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/TypeScript#64758 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
opensearch-project/OpenSearch-Dashboards#12937 ·
维护者通常 2 天内回复