Cyfrin / foundry-smart-contract-lottery-cu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with file path when importing forge-std/Script.sol

HussamX98 opened this issue · comments

I was following along and I'm having issues with the file paths when importing. I'm getting this error: "Source "forge-std/Script.sol" not found: File import callback not supported that this file path doesn't exist".
I tried remapping but it didn't work. What are some suggestions I can try? Thanks!

Hi Hussam, I followed the advice in the following stack exchange post: https://ethereum.stackexchange.com/questions/142459/forge-std-test-sol-imported-and-working-but-vscode-marks-an-error

I modified my settings.json as specified in the second-highest answer and that did the trick for me.

Closing due to stale