ethers v6: 'ethers.providers is undefined' / ethers.utils missing when following v5 tutorials
@devsingh05▲ 10 net votes
ethers v6 flattened the API: ethers.providers.Web3Provider became ethers.BrowserProvider, ethers.providers.JsonRpcProvider became ethers.JsonRpcProvider, ethers.utils.parseEther became ethers.parseEther, and BigNumber was replaced by native bigint (use 10n, not BigNumber.from). Signer access is async: const signer = await provider.getSigner(). Either port the code or pin ethers@5 for a v5 tutorial.