Module introuvable: ‘redux’

J’ai créé une nouvelle application de réaction en utilisant create-react-app cli. Ensuite, j’ai ajouté la bibliothèque 'react-redux' npm install --save react-redux 'react-redux' utilisant npm install --save react-redux .

Dans package.json j’ai:

 "react-redux": "^4.4.5" 

Malheureusement, l’application ne comstack pas et se plaint avec:

 Error in ./~/react-redux/lib/utils/wrapActionCreators.js Module not found: 'redux' in C:\Users\Salman\Desktop\Courses\Internship\React\Youtube-Front-End\node_modules\react-redux\lib\utils @ ./~/react-redux/lib/utils/wrapActionCreators.js 6:13-29 

Je n’ai aucune idée de ce que cela signifie?

Voici le conteneur complet:

 import React,{Component} from 'react'; import {connect} from 'react-redux'; class BookList extends Component{ renderList(){ return this.props.books.map((book)=>{ 
  • {book.title}
  • }); } render(){ return(
      {this.renderList()}
    ); } } function mapStateToProps(state){ return{ books:state.books }; } export default connect(mapStateToProps)(BookList);

    Voici package.json complet:

     { "name": "Youtube-Front-End", "version": "0.1.0", "private": true, "devDependencies": { "react-scripts": "0.6.1", "webpack": "^1.13.2" }, "dependencies": { "react": "^15.3.2", "react-dom": "^15.3.2", "react-redux": "^4.4.5", "youtube-api-search": "0.0.5" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" } } 

    Vous devez installer react-redux mais aussi la librairie redux.

     npm install --save redux