我一直在关注本教程(https://www.turbo360.co/tutorial/redux-walkthrough)并且我一直在尝试运行webpack,但构建仍然失败。任何人都知道为什么它一直在崩溃?
import { createStore, appMiddleware, combineReducers } from 'redux'
import thunk from 'redux-thunk'
import { todoReducer } from './reducers'
let store = null
export default {
createStore: () => {
const reducers = combineReducers({
todo: todoReducer
})
store = createStore(
reducers
appMiddleware(thunk)
)
return store
},
currentStore: () => {
return store
}
}
有谁知道解决方案?