Server side rendering of component #9500
duncanelliot
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am trying to render a svelte component from within the route/api/report/+server.ts route. The idea is to create an HTML string with the component(s) including CSS which i can then feed to puppeteer to produce a PDF.
I am able to render an individual component using the component.render() method however the Tailwind CSS do are not parsed and the Animations are not played out meaning that the data is not showing.
I played around with using
event.fetch(/dashboard)
but none of the D3 graphs are being rendered.I welcome any input on the matter.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions