We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2376abc commit e44785dCopy full SHA for e44785d
src/compiler/moduleSpecifiers.ts
@@ -159,7 +159,7 @@ namespace ts.moduleSpecifiers {
159
for (const path of paths) {
160
const resolved = links.get(path)!;
161
if (startsWith(target, resolved + "/")) {
162
- const relative = getRelativePathFromFile(resolved + "/file.ts", target, getCanonicalFileName);
+ const relative = getRelativePathFromDirectory(resolved, target, getCanonicalFileName);
163
const option = resolvePath(path, relative);
164
if (!host.fileExists || host.fileExists(option)) {
165
if (!options) options = [];
0 commit comments