cross-fetch icon indicating copy to clipboard operation
cross-fetch copied to clipboard

Cross fetch throw an error [ReferenceError: XMLHttpRequest is not defined]

Open yasirrafiq33 opened this issue 3 years ago • 0 comments

This is specific case with nextJs middleware. The package is working fine everywhere but when we try to use it in NEXTJS middleware its throw error. The middleware is using edge runtime. https://nextjs.org/docs/api-reference/edge-runtime

yasirrafiq33 avatar Jul 25 '22 12:07 yasirrafiq33