'File not exist Solc error when trying to import data feed into my contract

enter image description here

enter image description here

enter image description here

I have tried changing different versions of solc, solidity, and chainlink contracts but it doesn't work.

Error:

contracts/Lottery.sol:4:1: ParserError: Source "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol" not found: File outside of allowed directories.
import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";


Solution 1:[1]

Perhaps the yaml file being in the tests folder is the problem. I would move that file to live in your top level directory.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Erick Wright