Unable to compile when importing, otherwise it works fine. #1745
Replies: 11 comments 8 replies
-
Hi! Thanks for the report. What compilation framework (hardhat, foundry, etc) is your project using? |
Beta Was this translation helpful? Give feedback.
-
hardhat |
Beta Was this translation helpful? Give feedback.
-
It does not seem to be noticing hardhat is present, do you have a |
Beta Was this translation helpful? Give feedback.
-
where can i get this file? |
Beta Was this translation helpful? Give feedback.
-
That file is part of your project if you're using Hardhat. |
Beta Was this translation helpful? Give feedback.
-
there is no such file in my directory |
Beta Was this translation helpful? Give feedback.
-
Are you sure you're in the correct directory then? That file is contained in all hardhat projects 🤔 |
Beta Was this translation helpful? Give feedback.
-
i didnt have made any specific folder all the files are in |
Beta Was this translation helpful? Give feedback.
-
so if you run |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Describe the issue:
Program does not run/compile when I import otherwise it works fine in VS code.
Code example to reproduce the issue:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import "@openzeppelin/contracts/utils/Counters.sol";
contract MyNFT is ERC721 {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
}
Version:
0.9.2
Relevant log output:
No response
Beta Was this translation helpful? Give feedback.
All reactions