You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building an Azure function app with web3 for calling some smart contract. There is a problem with deploying to Azure using the web3-package because of scrypt. So instead i went for including web3.min.js like so:
const Web3 = require('./web3.min.js');
When I deploy this to Azure or run it locally i get the error:
'TypeError: t.XMLHttpRequest is not a constructor'
This seems weird to me since the code is working fine otherwise. Does anyone have a workaround?
I have already tried the light version and the regular web3.js aswell.
When installing the package with npm and using it in the regular way it works locally but as stated above, the problem then arises when deploying to Azure, so I need some other way of doing it.
The text was updated successfully, but these errors were encountered:
Alenius
changed the title
x
'TypeError: t.XMLHttpRequest is not a constructor' when using web3.min.js
Nov 21, 2018
Hello!
I am building an Azure function app with web3 for calling some smart contract. There is a problem with deploying to Azure using the web3-package because of scrypt. So instead i went for including web3.min.js like so:
When I deploy this to Azure or run it locally i get the error:
This seems weird to me since the code is working fine otherwise. Does anyone have a workaround?
I have already tried the light version and the regular web3.js aswell.
When installing the package with npm and using it in the regular way it works locally but as stated above, the problem then arises when deploying to Azure, so I need some other way of doing it.
The text was updated successfully, but these errors were encountered: