Lhoussaine Ait Aissa
Lhoussaine Ait Aissa

Reputation: 11

Source "forge-std/Script.sol" not found: File import callback not supported



    pragma solidity  ^0.8.19;

   import { Script , console } from "forge-std/Script.sol"; 

I was trying to add remappings.txt but not working

# forge-std/=lib/forge-std/src/

forge remappings > remappings.txt

please help me to fix this error !!

Upvotes: 1

Views: 970

Answers (1)

Tariq Booker
Tariq Booker

Reputation: 1

I have been able to download the lib directory consisting of the forge-std/Script.sol file using the following command line prompt.

forge init --no-commit

or

forge init --no-commit --force

Note that as the flag suggests there is no commit being created. Also, as you may know this is the initialization of the foundry project so running this will start a new blank project.

Upvotes: 0

Related Questions