在更新@react-material/core之后,我得到了这个错误,我不知道如何解决这个问题。
我尝试更新react-redux和redux-thunk库,但没有成功。
这是我的存储文件的一部分:
const store = isDevMode
? createStore<ApplicationState>(
rootReducer,
initialState,
composeEnhancers(applyMiddleware(...middleware)),
)
: createStore<ApplicationState>(
rootReducer,
initialState,
applyMiddleware(...middleware),
);这是错误:
我只是想解决这个问题来生成一个新的版本。有什么想法吗?
谢谢!
发布于 2019-07-10 22:17:49
今天早上我遇到了这个问题。我尝试更新我的@types/react-redux,但没有任何运气。最终,我只是将此作为解决方法添加到类型错误中:
<Provider store={store as any}>
<App />
</Provider>发布于 2019-07-10 22:53:23
您应该将redux更新到4.0.3 (请参阅:https://github.com/reduxjs/redux/issues/3466)
https://stackoverflow.com/questions/56961024
复制相似问题