I am currently working in a MERN stack application. Whenever i make any changes in the file and try to save it, it gives error in console as UnhandledPromiseRejection. Due to this any changes made in the file does not reflect. How can i overcome with this type of error?
I have cloned the project from Git Repo. Attached the Git Repo link in this post.
You haven't specified which part of your code is having the problem but that error generally means that a promise is rejecting but you haven't handled it in case of error.
I searched your code and there were a few times when you had handled promises with then but there weren't any catch methods in case something is wrong.