"Invalid input source specified" - Remix Solidity IDE error

Viewed 5243

I have removed everything from my remix IDE, except the following:

pragma solidity ^0.6.6;

contract daily_unlimited_deFitasy{
}

And yet I am still getting the following error when attempting to compile:

Invalid input source specified

Why am I getting this error?

3 Answers

I found out what was wrong. A user gets this error anytime a file for compilation is missing. The most common way this can come up is if your session expired or your cookies/history has been deleted.

If this is the case, a simple refresh will solve the error. Be sure to copy the source code in front of you so you can repaste it after the refresh completes.

For Me, it occured in my test scripts and what I did to resolve it, was to comment out this line: import "remix_accounts.sol";

When Remix can not reach import file raises this error. Check your connection or comment out the one of imported files.

Related