I upgraded an Angular App from v8 to v9. The project imports a custom UI library using Angular 8 and moment.js.
When I build it:
#2 happened to me after I accidentally used npm link in a project's folder instead of it's dist folder.
npm link