-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite cannot load configuration files in the link directory #4180
Comments
To make this issue more searchable , the error message in a js project will be (different from ts project):
Also, some other keywords: windows, symlink, git-bash, cmd, powershell, junction This is the same issue as #1493. |
From my test, it doesn't happen in projects created with |
Any progress on it? |
… (#4181) Co-authored-by: sapphi-red <[email protected]>
Describe the bug
Failed to package in the linked directory,Because the configuration file was not successfully loaded.
is this code,
filename
resolves to realpath but thefileName
is link path. therefore lead to use defaultLoader to loadvite.config.ts
which isundefined
loader.so. my fix is use fs.realpathSync to get real
fileName
dir, and that's work for me.Reproduction
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: