Property 'document' does not exist on type 'Window & typeof globalThis'.
actually i know this is normal because its a backend not a frontend, but i'm using linkedom (parse html into DOM) so when i use it, this error occurs, when i run the code it works 100%, but this error from the vscode extension after enabling deno
the code:
3 Replies
fixed: in deno.json i add to the 'lib' array in 'compilerOptions' : "dom"
You should switch deno.window out with deno.ns if you have dom
ok, thx