使用redux-dev-tools时需要未知模块“http”

时间:2016-08-22 06:11:30

标签: react-native

这是我的代码段:

import { createStore, applyMiddleware } from 'redux';
import thunk    from 'redux-thunk';
import devTools from 'remote-redux-devtools';
import StockApp from '../reducers';

// create a store that has redux-thunk middleware enabled
const createStoreWithMiddleware = applyMiddleware(
  thunk
)(createStore);
alert("inside production");
export default function configureStore() {
  return createStoreWithMiddleware(StockApp);
}

每当我尝试导入remote-redux-devtools时,它都会在屏幕下方显示

enter image description here

如果我尝试删除remote-redux-devtools导入语句一切顺利,请建议或指出当我在

中指定redux dev工具时可能会导致什么

1 个答案:

答案 0 :(得分:0)

如图所示,你应该ctrl + c结束服务器,并重新启动,npm run start --reset-cache