Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dca41c commit 6bd5434Copy full SHA for 6bd5434
packages/vite/src/node/utils.ts
@@ -608,7 +608,17 @@ function optimizeSafeRealPathSync() {
608
safeRealpathSync = fs.realpathSync
609
return
610
}
611
-
+ // Check the availability `fs.realpathSync.native`
612
+ // in Windows virtual and RAM disks that bypass the Volume Mount Manager, in programs such as imDisk
613
+ // get the error EISDIR: illegal operation on a directory
614
+ try {
615
+ fs.realpathSync.native(path.resolve('./'))
616
+ } catch (error) {
617
+ if (error.message.includes('EISDIR: illegal operation on a directory')) {
618
+ safeRealpathSync = fs.realpathSync
619
+ return
620
+ }
621
622
exec('net use', (error, stdout) => {
623
if (error) return
624
const lines = stdout.split('\n')
0 commit comments