Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 718d2fc

Browse files
authored
Merge pull request #1365 from danielsogl/patch-6
fix(2889): fix build error with --prod
2 parents 09bd434 + 94e5f7c commit 718d2fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logger/logger-typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function loadDiagnostic(context: BuildContext, tsDiagnostic: ts.Diagnostic) {
3030
lines: []
3131
};
3232

33-
if (tsDiagnostic.file) {
33+
if (tsDiagnostic.file && tsDiagnostic.file.getText) {
3434
d.absFileName = tsDiagnostic.file.fileName;
3535
d.relFileName = Logger.formatFileName(context.rootDir, d.absFileName);
3636

0 commit comments

Comments
 (0)