1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 01:58:05 -05:00
denoland-deno/tests/specs/run/document/document.out
Bartek Iwańczuk ee904ec06c
fix: add hint for missing document global in terminal error (#26218)
This came up on Discord as a question so I thought it's worth adding a
hint for this as it might be a common pitfall.

---------

Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2024-10-15 21:51:39 +00:00

8 lines
336 B
Text

error: Uncaught (in promise) ReferenceError: document is not defined
document.querySelector("div");
^
at [WILDCARD]document.js:1:1
info: document global is not available in Deno.
hint: Use a library like happy-dom, deno_dom, linkedom or JSDom
and setup the document global according to the library documentation.