keroxp/servest

renderToString is not typed, gives squiggles in VSCode

Closed this issue · 4 comments

image

Everything else seems to work, it even starts, but that renderToString gives red squiggles as if it was any.

Deno 1.1.0
Denoland/deno extension 1.25.0

Me too.
As an aside, I tried the other method third-party module deno_types, but an error occurred and it did not work.

@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?

@keroxp sure. Btw this is the example you give in the README.

EDIT I forgot TSX extension. It still gives the same error:

image

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.

@Ciantic Yeah it is issue of deno-vscode. So no way to fix it by us. Would you close the issue?