Open Solangetatiana opened 3 years ago
Thanks for your report! Angular is known to break software that wasn't written by the angular team itself ;-) Specifically their "optimizer" prefers smaller over working code. Which exact version of angular and the build optimizer are you using? And did you already try to debug the issue?
Ah - this is about this set of versions - isn't it? So did you already try debugging it yourself?
Yes!! The package.json has the versions! Angular 8.
I don't have a clear idea of how to debug and how to get around this before generating the build with minified code ...
Did you try with a more recent version of angular (newest version 9, or even 10?) I remember there were many issues in version 8. If you're looking to crash your software, use angular 8 "production" builds ;-)
"path" dont works on angular build --prod or even when file angular.json has the options below set to build in dev (the same when build --prod ):
Steps to reproduce the behavior: Foloow the github link: https://github.com/Solangetatiana/example-path-svg2pdf
async createPDF() { const areaSvg = document.getElementById('area_svg_print'); const desenhoTotal = document.getElementById('desenho_total_print');
}
download(uri) { const link = document.createElement('a'); link.download = 'exemple.PDF'; link.href = uri; link.click(); }