Skip to content

Commit

Permalink
fix: normalize import file path info (#15772)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored Feb 12, 2024
1 parent 570e0f1 commit 306df44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/vite/src/node/plugins/importAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,8 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
// fix#9534, prevent the importerModuleNode being stopped from propagating updates
importerModule.isSelfAccepting = false
return this.error(
`Failed to resolve import "${url}" from "${path.relative(
process.cwd(),
importerFile,
`Failed to resolve import "${url}" from "${normalizePath(
path.relative(process.cwd(), importerFile),
)}". Does the file exist?`,
pos,
)
Expand Down

0 comments on commit 306df44

Please sign in to comment.