Error: Module not found: Can’t resolve 'React-Redux' in

Asked

Viewed 2,373 times

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

inserir a descrição da imagem aqui

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.

  • You got that react-redux in the package.json and is installed?

1 answer

1

Which package manager do you use?

This package could be in node_modules, but if you’re not in package.json or in the cache file of dependency/package managers (yarn.lock or package-lock.json).

Try to delete the folder node_modules and the cache file yarn.lock or package-lock.json

And reinstall the dependencies.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.