Skip to content

ReferenceError: XMLHttpRequest is not defined #15040

Answered by Ciantic
WeihanWMW asked this question in Q&A
Discussion options

You must be logged in to vote

Deno does not have functioning XMLHttpRequest by default.

You can try a polyfill

Do this before your imports:

import "https://deno.land/x/xhr@0.1.0/mod.ts";

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WeihanWMW
Comment options

Answer selected by WeihanWMW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants