2016-08-22 71 views
0

这是我下面的代码片段:使用终极版-devtools需要时未知模块“HTTP”

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); 
} 

每当我试图导入远程终极版-devtools它给了我下面的屏幕

enter image description here

的情况下,我尝试删除remote-redux-devtools import语句一切顺利的话,请建议或指出还有什么能因为当我在

回答

0
指定终极版开发工具作为图片的

,你应该ctrl + c结束服务器,并重新启动,npm运行启动--reset-cache