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它給了我下面的屏幕
的情況下,我嘗試刪除remote-redux-devtools
import語句一切順利的話,請建議或指出還有什麼能因爲當我在