You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
facing the issue even after degrading the ether version to 5.4.0 tried reinstalling but facing this issue code
const provider = new ethers.providers.JsonRpcProvider(
"HTTP://127.0.0.1:7545"
); Error
TypeError: ethers.contractFactory is not a constructor
@venkatmanish for this error TypeError: ethers.contractFactory is not a constructor you need to add new keyword before the ether.ContractFactory and it ContractFactory with capital C.
Lesson / Section
Lesson 7 / Testing Fund Me
Video URL at current time
https://youtu.be/gyMwXuJrbJQ?t=40692
Operating System
Linux
Bug description:
ether latest versions drop a TypeError "Cannot read properties of undefined (reading 'JsonRpcProvider')". In my case ^6.0.2
Bug Solution:
Downgrade ethers to 5.7.2 version
The text was updated successfully, but these errors were encountered: