renderToString is not typed, gives squiggles in VSCode
Closed this issue · 4 comments
Ciantic commented
yoshixmk commented
Me too.
As an aside, I tried the other method third-party module deno_types, but an error occurred and it did not work.
keroxp commented
@Ciantic Hmm... latest react-dom-server
may have breaking change? Could you try to remove deno-types annotation for react-domserver and check it works?
Ciantic commented
@keroxp sure. Btw this is the example you give in the README.
EDIT I forgot TSX extension. It still gives the same error:
Even though it starts.
Notice that this issue is about the VSCode experience. Your code works, and it doesn't give errors when running, but using with VSCode gives squiggles and it doesn't know the types.