Skip to content

Commit

Permalink
Fix windows paths mismatching for type errors (#8766)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored Sep 17, 2019
1 parent 4e9e510 commit 129e32f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/build/output/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}))

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 129e32f

Please sign in to comment.