natemoo-re/satori-html

Update types to work with satori 0.4.1

nzoschke opened this issue · 2 comments

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), ...)

I'm facing the same issue in an Astro 3 project with Vue 3 (+ jsx enabled)

I have the same issue. Adding as ReactNode after the html output works as a work-around without disabling types completely.