XMLHttpRequest issues when running Babylonjs on a server (nodejs and TypeScript)

Try this:

import xhr2 from 'xhr2'

// @ts-ignore
global.XMLHttpRequest = xhr2.XMLHttpRequest

EDIT: Oops yeah you probably did this :smiley:

1 Like