mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
ee904ec06c
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>
8 lines
336 B
Text
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.
|