File import callback not supported import “…/…/GSN/Context.sol”

myc:5:1: ParserError: Source “GSN/Context.sol” not found: File import callback not supported
import “…/…/GSN/Context.sol”
^-----------------------------^
myc:6:1: ParserError: Source “IERC20.sol” not found: File import callback not supported
import “./IERC20.sol”
^--------------------^
myc:7:1: ParserError: Source “math/SafeMath.sol” not found: File import callback not supported
import “…/…/math/SafeMath.sol”
^-------------------------------^
myc:8:1: ParserError: Source “utils/Address.sol” not found: File import callback not supported
import “…/…/utils/Address.sol”
^-------------------------------^

1 Like

Hi @Madison_Gagnon,

I am sorry you had this issue. How were you compiling the contract?

Hi @Madison_Gagnon,

If you are using Windows, then I recommend using Windows Subsystem for Linux (WSL): Solidity Smart Contract development on Windows

I use WSL2 on Windows 10.

3 posts were split to a new topic: File import callback not supported Context.sol