I believe I faced this issue before and resolved it with:
import XMLHttpRequest from 'xhr2';
global.XMLHttpRequest = XMLHttpRequest;
Sources:
I believe I faced this issue before and resolved it with:
import XMLHttpRequest from 'xhr2';
global.XMLHttpRequest = XMLHttpRequest;
Sources: