When I deploy the smart contract, an error occurs

Run the command to generate a counter contract in Sway:
To build a contract, move inside the counter-contract folder:
Next, run the forc build command:
error message:
Error: Failed to source dependency: core

Hey @yanjuchen186, are you following all the mentioned steps in the docs? I got something similar error and I ran the command curl https://install.fuel.network | sh and it worked for me. Here is the repo for your ref. Lmk if you are still facing the issue :slight_smile:

yes, I following all the mentioned steps in the docs

can you share your local repo?

now i run the git command:
git clone GitHub - Nazeeh21/counter-contract

Then the program is running normally without any errors.

1 Like