0

什么项目工作正常,但是在“npm production”之后 devtools show message No store found?在“npm development”项目和 Devtools 中运行良好。我的商店.js

import { createStore, compose, applyMiddleware } from 'redux';
import rootReducer from './reducers';
import thunk from 'redux-thunk';
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(rootReducer, composeEnhancers(applyMiddleware(thunk)));

export default store;

4

0 回答 0