Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 7: "TypeError" by Ether latest versions #5154

Open
juliancabmar opened this issue Mar 22, 2023 · 2 comments
Open

Lesson 7: "TypeError" by Ether latest versions #5154

juliancabmar opened this issue Mar 22, 2023 · 2 comments
Labels

Comments

@juliancabmar
Copy link

juliancabmar commented Mar 22, 2023

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

@juliancabmar juliancabmar changed the title ether latest versions "TypeError" by Ether latest versions Mar 22, 2023
@juliancabmar juliancabmar changed the title "TypeError" by Ether latest versions Lesson 7: "TypeError" by Ether latest versions Mar 22, 2023
@venkatmanish
Copy link

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

@alymurtazamemon
Copy link
Contributor

@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.

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

No branches or pull requests

3 participants