Vite resolves file from cwd instead of node module if the names are identical #15500
Closed
7 tasks done
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
This is based on vitest-dev/vitest#4860
I was able to reduce reproduction to a few lines:
The expectation is that
tsoa
will be resolved to the package in node modules, not totsoa.json
file in the root of the project.Reproduction
https://stackblitz.com/edit/vitejs-vite-pivsa8?file=vite.mjs,package.json
Steps to reproduce
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: