-
Notifications
You must be signed in to change notification settings - Fork 316
Error trying to build server side rendering angular 9 #2228
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
Comments
@vasiliy-maslov can you try to update your webpack.server.ts file to exclude these libraries from server.ts? For e.g. |
@wizquest-labs It didnt work for me. |
@dssagar93 Unfortunately not. I had to use another library. |
@vasiliy-maslov Thanks a lot for the demo, it helps a lot! We've spent the past few days looking into this, but it's really complicated because it's not an issue with amCharts, instead it's an issue with one of our dependencies (canvg). The issue is further complicated because this issue only happens with canvg 2.0, not canvg 3.0. But we can't upgrade to canvg 3.0 because the TypeScript team released a breaking change in version 3.7. We've been looking for a workaround for that. |
We managed to fix the issue with canvg, and the fix will be in the next release, thanks for the report! |
@Pauan when can we expect the next release? |
We don't have a set date, but it will be at some point this week. |
Is there any temporary fix available or do I need to wait for the next release? |
Not that I'm aware of. Sorry. Hopefully we'll get the new version out soon. |
Ok thanks ! |
Fixed in 4.9.11. [4.9.11] - 2020-03-24Added
Fixed
Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue. |
this problem is with ng2-pdf-viewer library, I have used iframe as a aworkaround |
I am having this same issue with html2canvas as well. |
I got the same error and a few more when using amcharts 4. The server folder is not generated when the build part of the distribution kit for server rendering is build.
The commands that I ran:
ng add @ nguniversal / express-engine
npm run build: ssr && npm run serve: ssr
Demo: https://github.com/vasiliy-maslov/amcharts-angular-universal-error
Exceptions and warnings:
Originally posted by @vasiliy-maslov in #2027 (comment)
The text was updated successfully, but these errors were encountered: