I Was Facing the same issue and fixed it using the following command in the terminal in the project directory.
npm audit --fix
This resolved the issue.