Cyfrin / foundry-smart-contract-lottery-cu

47 stars 42 forks source link

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

Closed HussamX98 closed 9 months ago

HussamX98 commented 1 year ago

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!

MGM103 commented 1 year ago

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.

PatrickAlphaC commented 9 months ago

Closing due to stale