Skip to main content
deleted 8 characters in body
Source Link

I experienced a similar issue importing the Script object:

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

I didn't know that Foundry manages the path by default so I tried to find the Script.sol by following the previous shared path and couldn't find it.

After some research, I found that the correct path was:

import {Script} from "../lib/forge-std/src/Script.sol";

So you can either follow the previous repliessuggestions suggestions which are correct or just import it using the actual path.

import {Test} from "lib/forge-std/src/Test.sol"

I experienced a similar issue importing the Script object:

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

I didn't know that Foundry manages the path by default so I tried to find the Script.sol by following the previous shared path and couldn't find it.

After some research, I found that the correct path was:

import {Script} from "../lib/forge-std/src/Script.sol";

So you can either follow the previous replies suggestions which are correct or just import it using the actual path.

import {Test} from "lib/forge-std/src/Test.sol"

I experienced a similar issue importing the Script object:

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

I didn't know that Foundry manages the path by default so I tried to find the Script.sol by following the previous shared path and couldn't find it.

After some research, I found that the correct path was:

import {Script} from "../lib/forge-std/src/Script.sol";

So you can either follow the previous suggestions which are correct or just import it using the actual path.

import {Test} from "lib/forge-std/src/Test.sol"
added 53 characters in body
Source Link

I experienced a similar issue importing the Script object:

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

I didn't know that Foundry manages the path by default so I tried to find the Script.sol by following the previous shared path and couldn't find it.

After some research, I found that the correct path was:

import {Script} from "../lib/forge-std/src/Script.sol";

So you can either follow the previous replies suggestions which are correct or just import it using the actual path.

import {Test} from "lib/forge-std/src/Test.sol"

I experienced a similar issue importing the Script object:

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

I didn't know that Foundry manages the path by default so I tried to find the Script.sol by following the previous shared path and couldn't find it.

After some research, I found that the correct path was:

import {Script} from "../lib/forge-std/src/Script.sol";

So you can either follow the previous replies suggestions which are correct or just import it using the actual path.

I experienced a similar issue importing the Script object:

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

I didn't know that Foundry manages the path by default so I tried to find the Script.sol by following the previous shared path and couldn't find it.

After some research, I found that the correct path was:

import {Script} from "../lib/forge-std/src/Script.sol";

So you can either follow the previous replies suggestions which are correct or just import it using the actual path.

import {Test} from "lib/forge-std/src/Test.sol"
Source Link

I experienced a similar issue importing the Script object:

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

I didn't know that Foundry manages the path by default so I tried to find the Script.sol by following the previous shared path and couldn't find it.

After some research, I found that the correct path was:

import {Script} from "../lib/forge-std/src/Script.sol";

So you can either follow the previous replies suggestions which are correct or just import it using the actual path.