Update types to work with satori 0.4.1
nzoschke opened this issue · 2 comments
nzoschke commented
When trying to use this with satori 0.4.1 under deno, I get the following TS error:
Argument of type 'VNode' is not assignable to parameter of type 'ReactNode'.
Type 'VNode' is missing the following properties from type 'ReactPortal': key, children deno-ts(2345)
A simple work around is to use @ts-nocheck
on the file that calls satori(html(s), ...)
florian-lefebvre commented
I'm facing the same issue in an Astro 3 project with Vue 3 (+ jsx enabled)
andrioid commented
I have the same issue. Adding as ReactNode
after the html output works as a work-around without disabling types completely.