【问题标题】:flowtype error with redux-persist: `Cannot resolve module redux-persist`redux-persist 的流类型错误:`无法解析模块 redux-persist`
【发布时间】:2018-08-28 00:53:10
【问题描述】:

我正在尝试为我的所有 redux 相关代码增加我的流程覆盖率,我在 redux-persist 遇到了一个奇怪的问题,我希望其他人已经看到了。

我收到了这个错误

Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈ app/javascript/bundles/Kronos/ducks/store.js:4:54

Cannot resolve module redux-persist.

     1│ // @flow
     2│
     3│ import { createStore, applyMiddleware } from 'redux';
     4│ import { persistStore, persistCombineReducers } from 'redux-persist';
     5│ import storage from 'redux-persist/es/storage';
     6│ import logger from 'redux-logger';
     7│ import createSagaMiddleware from 'redux-saga';

我已将 redux-persist 库添加到我的 .flowconfig 中,但这似乎没有什么不同:

[libs]
./node_modules/redux-persist/lib/index.js.flow

有什么想法或建议???

【问题讨论】:

    标签: reactjs redux flowtype redux-persist


    【解决方案1】:

    您是否可能将yarn 安装与npms 混合使用? 我已经使用 npm 重新安装了 native-base(在我的情况下破坏了 redux-persist 的那个)和丢失的包,现在它又可以工作了

    【讨论】:

      猜你喜欢
      • 2021-06-03
      • 1970-01-01
      • 2022-08-14
      • 2020-07-12
      • 2018-06-04
      • 1970-01-01
      • 2023-02-21
      • 2017-08-23
      • 2017-06-06
      相关资源
      最近更新 更多