Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParserError: Source "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol" not found: File not found. Searched the following locations: "". #20

Open
ujwanviera opened this issue Oct 7, 2022 · 4 comments

Comments

@ujwanviera
Copy link

I am taking @PatrickAlphaC tutorial but I am stack at one point. Brownie Fund Me course. I tried to compile it but it does not work.
here are my file (as the one provided by @PatrickAlphaC in the course repo).
Error:
image

brownie-config.yaml:
image

FundMe.sol (a part of it as I copied it from the course repo and made no modifications):

image

Any idea of why I am having this error? I have been browsing on google trying to figure it out but with no success.
In my attempts I created a setting.json file as in some posts some one suggested that it works with it but for me the error kept coming up
setting.json:
image

Thank you.

@Tatendaz
Copy link

Tatendaz commented Oct 8, 2022

Hi @ujwanviera,

I faced a similar issue and I ended up just using the same version as in the videos provided and that solved it. For example in your contract use
pragma solidity 0.6.6;
And then import version 0.6 of the aggregatorV3Interface.sol

import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";

in you brownie-config/yaml file use 1.1.1

dependencies:
  # - <organization/repo>@version>
  - smartcontractkit/[email protected]
compiler:
  solc:
    remappings:
      - '@chainlink=smartcontractkit/[email protected]' 

If you still facing an issue let me know

@DiMiTriFrog
Copy link

DiMiTriFrog commented Dec 15, 2022

Hi @ujwanviera,

I faced a similar issue and I ended up just using the same version as in the videos provided and that solved it. For example in your contract use pragma solidity 0.6.6; And then import version 0.6 of the aggregatorV3Interface.sol

import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";

in you brownie-config/yaml file use 1.1.1

dependencies:
  # - <organization/repo>@version>
  - smartcontractkit/[email protected]
compiler:
  solc:
    remappings:
      - '@chainlink=smartcontractkit/[email protected]' 

If you still facing an issue let me know

But isn't a solution for DEC 2022..
I mean that we cant continue using old versions for fixing..

@practicalPanda7325
Copy link

Just use file path "@chainlink/contracts/src/v0.8/factories/interfaces/AggregatorV3Interface.sol"
instead of the one mentioned in Patrick's video

@VAIBHAV152001
Copy link

"#30 (comment)"
(check this github discussion link)
hey here is the answer of your error . see if this resolve your error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants