Metamask Swing: Uncaught Typeerror: Web3 is not a structure
Trinks with a scabbard, such as « Uncaught Typeeror: Web3 is not a structure » Biblioneque rations. This is the direction of you to shoot you.
** Ponimania Company
Obbite is indicated by the fact that web3.js (Library Javascript, used for mutilation with blockchain ethereum) can not install a component with your water Metamach. In part, this is that Web3
is not a structure.
Questions Version: Potential Vinovnik
Version of your library web3.js, using (^1.3
), can be a guilty of this problem. Well, you remembered the version, there is some kind of view of the versions:
* Web3 v0.4.4 : This is an old version, which does not sucker in transaction.
* Web3 v1.3.0-2.10.8
: This is the new versions that are subjugated by the mesh transaction, but it is possible not to work with the old verses of the Metamask or some website blockchain.
shooting nepotoja Shagov
To solve this problem, follow this step:
1. Check your Metamask version
Receive that you use the last version of Metamask. Submit on the web -resite metamask ([Metamask] ( and nose « plug » in the right Upper Up. This is the case with the Metamask Koshka Settings.
- List the range of verification (for example,
1.3.0
) and refer to it.
- Subtract a few minutes, Pok Web3.js Flatter, so as they can make some time for the prototype.
2. Check your blockchain site
Receive that your web -a blockchain access is web3.js. Try to get the access to the one and the same web -the sight of the sublime or without any (if it is possible). If the problem is made only by the Metamask connection, you can think of the braze or dissolve the possibility of the metamask.
3. Calve the Library Web3.js
At the existence of the old version web3.js (v0.4
) You can try to make it:
- Set up the last version from NPM: `NPM Install @Ethers -io/Web3 @Last
- In the qualities of alternatives, use the dispenser of the packages, such as a bower or a bower for the management.
4. Include ashron transaction
At the same
- On the Metamask Settings Put on « Advanced » and select the options for use of ashron transaction.
- Subtract a few minutes to change in force.
5. Breaking up a Metamask connection
If there is no one from the high -end chags resolves the problem, you can trigger the combination of Metamask:
- Grind all the copies web3.js in your braze or have made any exile on your code.
- Reboot the browser and again plug around to Metamask.
conclusion
Obbite « Uncaught Typeerror: Web3 is not a structure », especially indicates on the problem with the version of the Used Library Web3.js. The follow -up of these stages is a nonsense, you are able to solve the problem and firmly connect to your midamask on the web -sit blockchain.