PatrickAlphaC / hardhat-fund-me-fcc

82 stars 184 forks source link

FundMe is not compiling and getting error #12

Closed yasiriqbal1990 closed 2 years ago

yasiriqbal1990 commented 2 years ago

ParserError: Expected ';' but got '(' --> contracts/FundMe.sol:7:15: | 7 | error NotOwner(); | ^

Error HH600: Compilation failed

cipher222 commented 2 years ago

looks like there is an error with the code above that line. Did you forget to add a "; " at the end of import "./PriceConverter.sol";?

yasiriqbal1990 commented 2 years ago

Here is what my code above that is looks like. there is no error. Its working perfectly on remix but on visual studio and hardhat.

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

PatrickAlphaC commented 2 years ago

Need more information.

Did you run yarn hardhat compile?

And could you make this a question on the main repo? https://github.com/smartcontractkit/full-blockchain-solidity-course-js

yasiriqbal1990 commented 2 years ago

@PatrickAlphaC Yes I am using npx, When I run npx hardhat compile then I get the error Expected ';' but got '('.