2
When I try to run the application through yarn
returns the following error:
I reinstalled the package yarn add react-redux
and npm install --save redux
Page code that is giving error:
import React, {Component} from 'react';
import './App.css';
import {Provider} from 'react-redux';
import store from './store';
import Header from './Header';
import Footer from './Footer'
import Home from './Home';
import Chatbot from './Chatbot';
class App extends Component {
render(){
return (
<Provider store ={store} >
<div className="Conteudo">
<Header/>
<Home/>
<Chatbot/>
<Footer/>
</div>
</Provider>
);
}
}
export default App;
Try deleting the node_modules folder and adding the
react-redux
again if you haven’t already.– Chance
You got that
react-redux
in thepackage.json
and is installed?– Sergio