0

我正在尝试为所有与 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

有什么想法或建议???

4

1 回答 1

0

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

于 2018-04-23T12:51:09.873 回答