Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Property '[Symbol.observable]' is missing in type 'Store<ApplicationState>' but required in type 'Store<any, AnyAction>'. TS2741

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!

like image 236
Israel Saraiva Avatar asked Jul 09 '19 22:07

Israel Saraiva


1 Answers

You should update redux to 4.0.3 (see: https://github.com/reduxjs/redux/issues/3466)

like image 90
Olvis Avatar answered Oct 12 '22 11:10

Olvis