diff options
author | Bartek Iwańczuk <biwanczuk@gmail.com> | 2024-10-15 22:51:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-15 21:51:39 +0000 |
commit | ee904ec06c1a3b3d4e4a87898e777e2f9b587b07 (patch) | |
tree | 87dd34f481c9d35ef9c696599889294269ffff29 /tests/specs/run/document/document.out | |
parent | 3065dadea3792539f050346c534afc0a7821c2b6 (diff) |
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>
Diffstat (limited to 'tests/specs/run/document/document.out')
-rw-r--r-- | tests/specs/run/document/document.out | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/specs/run/document/document.out b/tests/specs/run/document/document.out new file mode 100644 index 000000000..eefedb8f2 --- /dev/null +++ b/tests/specs/run/document/document.out @@ -0,0 +1,8 @@ +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. |