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? |
hardhat |
|
It does not seem to be noticing hardhat is present, do you have a |
where can i get this file? |
|
That file is part of your project if you're using Hardhat. |
there is no such file in my directory |
|
Are you sure you're in the correct directory then? That file is contained in all hardhat projects 🤔 |
i didnt have made any specific folder all the files are in |
|
so if you run |




Uh oh!
There was an error while loading. Please reload this page.
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
All reactions