首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >类型有单独的私有属性声明- urql vs @urql

类型有单独的私有属性声明- urql vs @urql
EN

Stack Overflow用户
提问于 2021-01-29 23:35:05
回答 1查看 384关注 0票数 0

我似乎在@urql和urql之间有类型冲突。我该如何解决这个问题?

代码语言:javascript
复制
Type 'import("d:/Development/ribbit/web/node_modules/@urql/core/dist/types/types").Exchange' is not assignable to type 'import("d:/Development/ribbit/web/node_modules/urql/node_modules/@urql/core/dist/types/types").Exchange'.
  Types of parameters 'input' and 'input' are incompatible.
    Type 'import("d:/Development/ribbit/web/node_modules/urql/node_modules/@urql/core/dist/types/types").ExchangeInput' is not assignable to type 'import("d:/Development/ribbit/web/node_modules/@urql/core/dist/types/types").ExchangeInput'.
      Types of property 'client' are incompatible.
        Type 'import("d:/Development/ribbit/web/node_modules/urql/node_modules/@urql/core/dist/types/client").Client' is not assignable to type 'import("d:/Development/ribbit/web/node_modules/@urql/core/dist/types/client").Client'.
          Types have separate declarations of a private property 'onOperationStart'.ts(2322)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-02-11 09:41:05

我有这个问题是因为我安装了多个版本的@urql/exchange-graphcache作为依赖项。我通过简单地删除并重新安装它们解决了这个问题。

代码语言:javascript
复制
yarn remove @urql/exchange-graphcache
yarn add @urql/exchange-graphcache
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65957384

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档