我正在尝试让我的流程覆盖所有与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有什么想法或建议吗?
发布于 2018-04-23 20:51:10
您可能将yarn安装与npms混合安装了吗?我已经使用npm重新安装了原生库(在我的例子中是谁破坏了redux-persist )和丢失的包,现在它又可以工作了
https://stackoverflow.com/questions/49363369
复制相似问题