Module not found: 'redux'

react-redux internally uses Action, ActionCreator, AnyAction, Dispatch, Store these interfaces form redux package.

the moment you call

export default connect(mapStateToProps,mapDispatchToProps)(App);

react-redux try to make use of all these interfaces from redux package. which is not present at the moment.

So you may have to install react-redux package along with redux since both have dependency.

 npm install --save redux react-redux

Set moduleResolution to node at tsconfig.json

Example:

  "compilerOptions": {
    "moduleResolution": "node"
  }

You can use the following command:

using npm

npm install redux --save

using yarn

yarn add redux

You need to install react-redux but also redux library.

npm install --save redux