Unverified Commit 129e32f8 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix windows paths mismatching for type errors (#8766)

parent 4e9e5103
......@@ -265,13 +265,13 @@ export function watchCompilers(
const errors = allMsgs
.filter(msg => msg.severity === 'error')
.map(d => ({
file: d.file,
file: (d.file || '').replace(/\\/g, '/'),
message: format(d),
}))
const warnings = allMsgs
.filter(msg => msg.severity === 'warning')
.map(d => ({
file: d.file,
file: (d.file || '').replace(/\\/g, '/'),
message: format(d),
}))
......@@ -310,7 +310,7 @@ export function watchCompilers(
}
const reportFiles = stats.compilation.modules
.map((m: any) => m.resource)
.map((m: any) => (m.resource || '').replace(/\\/g, '/'))
.filter(Boolean)
let filteredErrors = typeMessages.errors
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment