Skip to content

Error: ENOENT: no such file or directory, Lesson 9 & 10- creating abi and contract addresses from lesson 9 automatically #2032

Answered by othaime-en
Sugunaramkumar asked this question in Q&A
Discussion options

You must be logged in to vote

Try and remove the extra dot (.) in these two lines

.../next-js-sc-lottery/lottery/constants/contractAddresses.json
.../next-js-sc-lottery/lottery/constants/abi.json

Accessing a file normally uses two dots (..) So they should be

../next-js-sc-lottery/lottery/constants/contractAddresses.json
../next-js-sc-lottery/lottery/constants/abi.json

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
7 replies
@Sugunaramkumar
Comment options

@othaime-en
Comment options

@Sugunaramkumar
Comment options

@othaime-en
Comment options

@Sugunaramkumar
Comment options

Answer selected by Sugunaramkumar
Comment options

You must be logged in to vote
4 replies
@alymurtazamemon
Comment options

@Sugunaramkumar
Comment options

@alymurtazamemon
Comment options

@Sugunaramkumar
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants