问题
I've got this error after update @react-material/core, and I don't know how to resolve this.
I tried to update react-redux and redux-thunk libraries with no success.
This is part of my store file:
const store = isDevMode
? createStore<ApplicationState>(
rootReducer,
initialState,
composeEnhancers(applyMiddleware(...middleware)),
)
: createStore<ApplicationState>(
rootReducer,
initialState,
applyMiddleware(...middleware),
);
This is the error:
ErrorImage
I'm just trying to resolve this to generate a new version. Any ideas?
Thanks!
回答1:
I ran into this issue this morning. I tried updating my @types/react-redux, but wasn't having any luck. Eventually I just added this as a workaround to the type error:
<Provider store={store as any}>
<App />
</Provider>
回答2:
You should update redux to 4.0.3 (see: https://github.com/reduxjs/redux/issues/3466)
来源:https://stackoverflow.com/questions/56961024/property-symbol-observable-is-missing-in-type-storeapplicationstate-but