Skip to content
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

fix: don't try to read the content when the requested path is mapped to a directory #105

Merged
merged 2 commits into from Apr 19, 2024

Conversation

daihuabin
Copy link
Contributor

when the requested path is a folder
Uncaught Error: EISDIR: illegal operation on a directory, read

Copy link

changeset-bot bot commented Apr 19, 2024

🦋 Changeset detected

Latest commit: c9fdb27

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sapphi-red sapphi-red changed the title fix: Vite exits abnormally when the requested path is a folder fix: don't crash when the requested path is mapped to a directory Apr 19, 2024
@sapphi-red sapphi-red changed the title fix: don't crash when the requested path is mapped to a directory fix: don't try to read the content when the requested path is mapped to a directory Apr 19, 2024
@sapphi-red
Copy link
Owner

Thanks!

@sapphi-red sapphi-red merged commit 32115f0 into sapphi-red:main Apr 19, 2024
6 of 7 checks passed
@github-actions github-actions bot mentioned this pull request Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants