diff --git a/packages/core/src/utils/paths.ts b/packages/core/src/utils/paths.ts index d80e0df20a..70afe289fa 100644 --- a/packages/core/src/utils/paths.ts +++ b/packages/core/src/utils/paths.ts @@ -440,10 +440,7 @@ function robustRealpath(p: string, visited = new Set()): string { e && typeof e === 'object' && 'code' in e && - (e.code === 'ENOENT' || - e.code === 'EISDIR' || - e.code === 'ENAMETOOLONG' || - e.code === 'EINVAL') + (e.code === 'ENOENT' || e.code === 'EISDIR') ) { try { const stat = fs.lstatSync(p);