Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Module not found: Can't resolve 'react-avatar'

I am having a MERN website with 2 folders in the Github repo, client and backend. When I am turning on the react server the output page is showing an error as

Failed to compile
./src/components/Student/Student.jsx
Module not found: Can't resolve 'react-avatar' in '/MernCrudApp/client/src/components/Student'
This error occurred during the build time and cannot be dismissed.

To reproduce this error please follow the following steps.

  1. Clone the repo
  2. Go into the backend folder and write npm install in the terminal and then npm run start, and then enter the client folder and repeat the commands respectively.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

There is no ‘react-avatar’ package in your client‘s package.json.

npm install react-package in this folder and you should be good.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading