Lesson 6: Error at importing chainlink (vscode marks as error) #126
-
I'm running the project on WSL2 Ubuntu 20.04 in a Windows 10 host machine. On FundMe.sol I have: // SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;
import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
import "@chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol"; and in brownie-config.yaml dependencies:
# - <organization/repo>@<version>
- smartcontractkit/[email protected]
compiler:
solc:
remappings:
- "@chainlink=smartcontractkit/[email protected]" When I run "brownie compile", the project compiles properly without any problems. However VScode still showing it as an error: I have no idea why this is happening, I also read info in another post like this one: https://stackoverflow.com/questions/67314540/vscode-solidity-extension-not-finding-openzepplin-imports without any luck, could anyone help me plz? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Yeah… this is due to the extension at the moment. You can safely ignore. There are some other solidity extension that don’t have this error, but don’t have a few other features as well. You can ignore or use a different extension |
Beta Was this translation helpful? Give feedback.
Yeah… this is due to the extension at the moment. You can safely ignore. There are some other solidity extension that don’t have this error, but don’t have a few other features as well. You can ignore or use a different extension