TangJieHaoT
Denoβ€’2y agoβ€’
3 replies
TangJieHao

Deno + Puppeteer causing compiler issues.

I get an error that document cannot be found. It's asking if I am trying to change the library. but when running deno run -allow-all --unstable it works

error: TS2584 [ERROR]: Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
const rows = document.querySelectorAll(".review-history-table tbody tr");
~~~~
Was this page helpful?