I am using Angular 7 for my Application and I am getting error while running it on development server .
I did ng serve
but I got error
Even I ran into the same problem. As @Ardzii suggested the issue is with 'npm audit fix' command. I cloned a new repo and installed the node packages again without running the npm audit command and now it works fine.
npm audit fix