-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Dev sever fails to start when inaccessible paths exist in project root #5765
Comments
@Bill-ParfulTech, have you found a workaround to ignore those paths? |
I don't get any errors when trying to reproduce this, but I think that's because your code imported something in the |
@bluwy I have the same issue, but the private folder in my case is a bunch of data files that nothing in the app needs to be accessing. There's no code at all in that directory. Nothing is imported from there. I can recreate this issue pretty easily with just:
Even an empty directory will pop this. (And no - no workaround. This issue is very frustrating) |
Thanks for the repro steps @xxx. That helped me narrow down the bug. It's an issue in tsconfck where the |
Describe the bug
When starting the Vite Dev Server, either by the
vite
command or viacreateServer()
, if there are inaccessible paths in the project root then the dev server fails to load.Reproduction
Create a new Vite project:
$ yarn create vite test --template vue
$ cd test
$ yarn
Create a directory owned by root ( or any user other than the one running vite ), and make it inaccessible to other users:
$ sudo mkdir private
$ sudo chmod o= private
Attempt to start vite dev server:
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: