I’m working on a React project, and after installing a new package, I’m getting the following error when trying to run my app:
*Module not found: Can't resolve 'module-name' in '/path/to/project'*
*I’ve tried reinstalling the node modules using npm install, clearing the cache with npm cache clean –force, and restarting my development server, but the error persists. The module is correctly listed in my package.json, and I can see it in the node_modules folder.
Has anyone faced a similar issue? How can I resolve this error?”*
New contributor
Shahzad Umar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.