Metamask dropped Web3.js injection, but provided a legacy support package. This is not a longer term fix, but allows things to work for now. Ran yarn add @metamask/legacy-web3 and added the import into networkService.js. Also relaxed the node.js requirement so that more current versions of node work.
Metamask dropped Web3.js injection, but provided a
legacy support
package. This is not a longer term fix, but allows things to work for now. Ranyarn add @metamask/legacy-web3
and added the import into networkService.js. Also relaxed thenode.js
requirement so that more current versions of node work.