I know this question has been asked before, but I seem to have a slightly different problem (at least, the solution provided in similar questions don't work for me).
The project is using Angular 12, there is (sadly) a required dependency that has not yet been able to update to Angular 13.
After updating the library ngx-markdown to v12.1.0, I had the error that node_modules/marked/lib/marked.js does not exist, so I changed the path in the angular.json script, as suggested on github.
Then, I got this error:
Error: Transform failed with 1 error:
error: Invalid version: "15.2-15.3"
As suggested here, I updated @angular/cli to 12.2.16, but this did not solve the issue for me.
Next, I tried to delete the node_modules file, and the package-lock.json and reinstalled everything, this also did not work.
Then, I tried to delete the .browserslistrc file, and also adding to it ios_saf 15.2-15.3, both as suggested on this github thread, but neither worked.
Does anyone have an idea what I could try next? Otherwise I guess the best solution would be to revert to ngx-markdown v12.0.0 despite the vulnerability..