Skip to content

Commit

Permalink
fix(vite-plugin-angular): unwrap typechecking diagnostic messages (#1576
Browse files Browse the repository at this point in the history
)
  • Loading branch information
brandonroberts authored Jan 24, 2025
1 parent f607a7e commit 6b9e71f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vite-plugin-angular/src/lib/angular-vite-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,11 @@ export function createFileEmitter(

const errors = diagnostics
.filter((d) => d.category === ts.DiagnosticCategory?.Error)
.map((d) => d.messageText);
.map((d) =>
typeof d.messageText === 'object'
? d.messageText.messageText
: d.messageText
);

const warnings = diagnostics
.filter((d) => d.category === ts.DiagnosticCategory?.Warning)
Expand Down

0 comments on commit 6b9e71f

Please sign in to comment.