NomicFoundation / hardhat-vscode

Solidity and Hardhat support for Visual Studio Code

Home Page:https://hardhat.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import errors on hardhat depending on the root directory

kanej opened this issue · comments

This issue was raised on twitter: https://twitter.com/0xPrimata/status/1651226891871821826

build project, in /d/Project/Feature;
import openzeppelin contract;

code . /d/Project 
cd Feature
import error

code . /d/Project/Feature
no import error

image

I tried to reproduce this on linux and windows and wasn't able to. Even included whitespaces on the directories to try to replicate. I also tried making the root directory a hardhat project itself (has a hardhat config file, contracts, etc), and even then the sub-project works properly.

I will ping on twitter to see if the repo is open source.

Closing as no response.