【问题标题】:Facing some weird issue on react-native app with typescript在使用 typescript 的 react-native 应用程序上遇到一些奇怪的问题
【发布时间】:2020-07-19 04:14:47
【问题描述】:

我在重新安装我的软件包后突然遇到以下问题,该应用程序运行正常,但它给了我以下打字稿错误,我发现我的 redux 版本从 4.0.4 更改为 4.0.5,我恢复了但还是报错

Argument of type 'StoreEnhancer<{ dispatch: {}; }, {}>' is not assignable to parameter of type 'StoreEnhancer<{}, {}>'.
  Types of parameters 'next' and 'next' are incompatible.
    Types of parameters 'preloadedState' and 'preloadedState' are incompatible.
      Type 'DeepPartial<S> | undefined' is not assignable to type 'PreloadedState<S> | undefined'.
        Type 'DeepPartial<S>' is not assignable to type 'PreloadedState<S>'.
   composeEnhancers(applyMiddleware(epicMiddleware, reduxLogger))

【问题讨论】:

    标签: reactjs typescript react-native redux react-redux


    【解决方案1】:

    我从我的应用程序中删除了 react-native-elements 并且没有再次收到错误,不确定,但似乎库有很多问题,它不是一个稳定的。

    【讨论】:

      猜你喜欢
      • 2018-03-17
      • 2022-11-23
      • 1970-01-01
      • 1970-01-01
      • 2021-09-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多