Skip to content

Lesson 10: Error: ENOENT: no such file or directory, open '../../nextjs-smartcontract-lottery-fcc/constants/contractAddresses.json' #4662

Discussion options

You must be logged in to vote

@umairahmed88 First of all make sure in your frontend project folder at the root level you should have a folder named constants and inside it, you should have these files contractAddresses.json and abi.json.

In addition to this, you should make sure your blockchain code project and frontend code project are inside the same folder and then you are using the paths accordingly.

If you are sure you have done all of these, then show me your folders structure.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@umairahmed88
Comment options

Answer selected by umairahmed88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants