I am using QuickBlox in a node environment, which does not have XMLHttpRequest by default, so I get the following error:
Uncaught (in promise) ReferenceError: XMLHttpRequest is not defined
at i (quickblox.min.js:2380:1)
Also installing xhr2 does not help.
Is there way to make QuickBlox work for node?
Use alternative npm for make http calls
Here, "axios" npm.
The axios package is also universal and can be used on the browser and on the server.
First, install the module:
Now you are able to use it: