Skip to content

node: fs.existsSync throws when returning false in Node #2494

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

Closed
Tracked by #2055
bartlomieju opened this issue Aug 3, 2022 · 0 comments · Fixed by #2495
Closed
Tracked by #2055

node: fs.existsSync throws when returning false in Node #2494

bartlomieju opened this issue Aug 3, 2022 · 0 comments · Fixed by #2495
Labels
bug Something isn't working

Comments

@bartlomieju
Copy link
Member

bartlomieju commented Aug 3, 2022

Describe the bug

Running std/node in Deno:

fs.existsSync("/dev/my-vue-app/vite.config.js/package.json");
Error: Not a directory (os error 20), stat '/dev/my-vue-app/vite.config.js/package.json'

Running in Node:

fs.existsSync("/dev/my-vue-app/vite.config.js/package.json");
false

Expected behavior

Should return false, this is needed for Vite compatibility.

Related #1216
Ref #2055

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant