【发布时间】: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