From ee3b0d3ccae018b796ddd26236b0bd2c4890195e Mon Sep 17 00:00:00 2001 From: Alex Denford SBL Date: Thu, 10 Sep 2026 17:45:13 -0700 Subject: [PATCH] Update source-maps.ts --- src/source-maps.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/source-maps.ts b/src/source-maps.ts index 3fec198e..9e40513a 100644 --- a/src/source-maps.ts +++ b/src/source-maps.ts @@ -201,6 +201,11 @@ export class SourceMaps { public async getGeneratedRemoteRelativePath(originalSource: string): Promise { const mapInfo = await this._sourceMapCache.getMapFromOriginalSource(originalSource); if (!mapInfo || !this._sourceMapRoot) { + if(originalSource.endsWith('.ts')) { + throw new Error( + `Could not find source map for ${originalSource}. Did you forget to build or are you trying to debug a file from a different project?` + ); + } // no source map, convert to remote relative path suitable for debugger. return normalizePathForRemote(path.relative(this._localRoot, originalSource)); }