2016-08-22 54 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