July 13, 2022 . 1 MIN READ
Stop your development server (Ctrl + C).
Delete the .next folder from your project’s root directory.
Remove the node_modules folder and the package-lock.json file.
Clear the npm cache:
Reinstall dependencies:
Restart the development server:
Reference:
https://stackoverflow.com/questions/65446047/error-module-not-found-whenever-i-try-to-run-npm-run-dev-using-next-js