smartcontractkit / full-blockchain-solidity-course-js

Learn Blockchain, Solidity, and Full Stack Web3 Development with Javascript
12.4k stars 2.98k forks source link

Lesson 5 Error reading SimpleStorage.sol: Error: ENOENT: no such file or directory, open 'SimpleStorage.sol' #5494

Closed Hamobcdev closed 1 year ago

Hamobcdev commented 1 year ago

Discussed in https://github.com/smartcontractkit/full-blockchain-solidity-course-js/discussions/4386

Originally posted by **wusw2** January 3, 2023 image why it show "Error reading SimpleStorage.sol: Error: ENOENT: no such file or directory, open 'SimpleStorage.sol' error Command failed with exit code 1."?
Hamobcdev commented 1 year ago

Is there any other reason I continue to get this error, I have tried the fixes mentioned here and no change after changing up the compiler to 0.8.14 fixed that also had an issue, and tgz file for the fix, so I reverted to the 0.8.7 fixed in the tutorial? I have got another tip that suggests it may be something I did or didn't do correctly in my setup, where exactly I don't know, any help please? SimpleStorage sol error

alymurtazamemon commented 1 year ago

@Hamobcdev Your SimpleStorage.sol file is inside ethers-simple-storage-fcc folder and the rest of your files are outside it. Due to that, your path will be different than this one. You should move your Deploy.js and SimpleStorage.sol files to the hh-fcc folder and run this command.

Hamobcdev commented 1 year ago

@alymurtazamemon thanks so much this worked, I really appreciate your help. Cheers