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
Build failing when using this template with SolidJS #295
Comments
I think I actually found a solution, so I'll post it here just in case someone else stumbles upon the same thing. I replicated what this package does: for example: export async function renderToSvg(
component: () => JSX.Element,
options: SatoriOptions
) {
const result = await renderToStringAsync(component);
const markup = htmlToReactNode(result);
return satori(markup, options);
}
export async function generateOgImageForPost(post: CollectionEntry<"blog">) {
const svg = await renderToSvg(() => postOgImage(post), options);
return svgBufferToPngBuffer(svg);
} And obviously updated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a strange issue when using SolidJS with this template.
results in:
Probably a long shot, but perhaps anyone has a solution?
The text was updated successfully, but these errors were encountered: