Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

TypeError: window.Web3 is not a constructor #43

Open
Etherdrake opened this issue Nov 16, 2021 · 1 comment
Open

TypeError: window.Web3 is not a constructor #43

Etherdrake opened this issue Nov 16, 2021 · 1 comment

Comments

@Etherdrake
Copy link

Etherdrake commented Nov 16, 2021

Getting this error after npm run start in the last step. I can see the MultiSender screen for one second then I get the error. I have used nvm to use the same version of Node.js during installation as the author.

(anonymous function)
`http://localhost:3000/static/js/bundle.js:151509:16
151506 | // Checking if Web3 has been injected by the browser (Mist/MetaMask)
151507 | if (typeof web3 !== 'undefined') {
151508 | // Use Mist/MetaMask's provider.

151509 | web3 = new window.Web3(web3.currentProvider);
| ^ 151510 | web3.version.getNetwork(function (err, netId) {
151511 | var netIdName = void 0,
151512 | trustApiName = void 0,```

Terminal Output:

  Line 41:  Anchors must have content and the content must be accessible by a screen reader   jsx-a11y/anchor-has-content
  Line 41:  Links must not point to "#". Use a more descriptive href or use a button instead  jsx-a11y/href-no-hash
  Line 48:  Anchors must have content and the content must be accessible by a screen reader   jsx-a11y/anchor-has-content
  Line 48:  Links must not point to "#". Use a more descriptive href or use a button instead  jsx-a11y/href-no-hash

./src/stores/txStore.js
  Line 1:    'computed' is defined but never used               no-unused-vars
  Line 1:    'autorun' is defined but never used                no-unused-vars
  Line 5:    'Web3' is defined but never used                   no-unused-vars
  Line 6:    'observer' is defined but never used               no-unused-vars
  Line 86:   'totalBalance' is assigned a value but never used  no-unused-vars
  Line 117:  'tx' is assigned a value but never used            no-unused-vars

./src/App.js
  Line 1:  'Component' is defined but never used  no-unused-vars
  Line 2:  'Retry' is defined but never used      no-unused-vars
  Line 2:  'Welcome' is defined but never used    no-unused-vars

./src/getWeb3.js
  Line 1:  'Web3' is defined but never used  no-unused-vars

./src/components/Header.js
  Line 2:   'Link' is defined but never used                                                                                              no-unused-vars
  Line 14:  Anchors must have content and the content must be accessible by a screen reader                                               jsx-a11y/anchor-has-content
  Line 14:  Links must not point to "#". Use a more descriptive href or use a button instead                                              jsx-a11y/href-no-hash
  Line 27:  Anchors must have content and the content must be accessible by a screen reader                                               jsx-a11y/anchor-has-content
  Line 27:  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank

./src/components/1.js
  Line 6:   'form' is defined but never used                                                                                              no-unused-vars
  Line 6:   'button' is defined but never used                                                                                            no-unused-vars
  Line 32:  'isAddress' is assigned a value but never used                                                                                no-unused-vars
  Line 37:  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank
  Line 39:  'isJson' is assigned a value but never used                                                                                   no-unused-vars

./src/stores/tokenStore.js
  Line 7:  'add' is defined but never used  no-unused-vars

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
`
@dhoff002
Copy link

I have the same issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants