Encountering a “ReferenceError: XMLHttpRequest is not defined” error in the preview

For Workes & Pages, what is the name of the domain?

exmaple.com

What is the error message?

ReferenceError: XMLHttpRequest is not defined

What is the issue or error you’re encountering

Since last week, we’ve been encountering a “ReferenceError: XMLHttpRequest is not defined” error in the preview environment. The affected URL is https://develop.camel-order-frontend.pages.dev. However, this issue has not occurred in the production environment. Our application is implemented using Next.js with the pages router, and we’re utilizing getServerSideProps with experimental-edge. The error seems to occur when making a fetch request during SSR. We’ve also received inquiries about this issue on Discord: Discord.

1 Like