Skip to main content

New answers tagged

0 votes

TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')

This worked for me step 1: open the terminal yarn add ganache yarn run ganache step 2: Keep the ganche running and OPEN a NEW TERMINAL node deploy.js
Rishu Kumar's user avatar
1 vote

TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')

With ethers@v5 const provider = new ethers.providers.JsonRpcProvider(RPC_URL); With ethers@v6 const provider = new ethers.JsonRpcProvider(RPC_URL);
0xcuonghx's user avatar
  • 166

Top 50 recent answers are included