DenoDDeno
Powered by
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");
~~~~
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Please help to run puppeteer with deno?
BhauminBBhaumin / help
2y ago
Getting errors while using puppeteer in deno environment
Aaditya MathurAAaditya Mathur / help
3y ago
Deno seems to assume wrong return type (Puppeteer)
Max van der VeldeMMax van der Velde / help
3y ago
Having issues downloading Deno
SecrethackSSecrethack / help
2y ago