File tree 1 file changed +4
-3
lines changed
v-next/hardhat/src/internal/builtin-plugins/solidity/build-system/resolver
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -847,8 +847,9 @@ export class ResolverImplementation implements Resolver {
847
847
return existing as NpmPackageResolvedFile ;
848
848
}
849
849
850
- const subpath = sourceNamePathToFsPath (
851
- path . relative ( remapping . targetNpmPackage . rootSourceName , directImport ) ,
850
+ const subpath = path . relative (
851
+ remapping . targetNpmPackage . rootSourceName ,
852
+ directImport ,
852
853
) ;
853
854
const resolvedSubpath = resolveSubpath ( remapping . targetNpmPackage , subpath ) ;
854
855
@@ -859,7 +860,7 @@ export class ResolverImplementation implements Resolver {
859
860
await this . #validateExistanceAndCasingOfImport( {
860
861
from,
861
862
importPath,
862
- relativeFsPathToValidate : resolvedSubpath ,
863
+ relativeFsPathToValidate : sourceNamePathToFsPath ( resolvedSubpath ) ,
863
864
absoluteFsPathToValidateFrom : remapping . targetNpmPackage . rootFsPath ,
864
865
usingPackageExports : remapping . targetNpmPackage . exports !== undefined ,
865
866
} ) ;
You can’t perform that action at this time.
0 commit comments