-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
svg2pdf.js: "path" dont works on angular build --prod #157
Comments
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:/Solangetatiana/example-path-svg2pdf
2.2
Sample with the error (npm start when the file angular.json with "aot": true and "optimization": true)
ATTENTION: The same result as an angular build --prod
https:/Solangetatiana/example-path-svg2pdf/blob/main/src/assets/exemple_ERROR_path_BUILD_DEV_with_config_BUILD_PROD.PDF
Sample without error (npm start when the file angular.json with "aot": false and without option "optimization": true)
https:/Solangetatiana/example-path-svg2pdf/blob/main/src/assets/exemple_OK_BUILD_DEV_without_config_BUILD_PROD.PDF
The text was updated successfully, but these errors were encountered: