我正在尝试为所有与 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
有什么想法或建议???