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

Does not see file changes when using envDir #17722

Closed
1 of 4 tasks
ordomalleus opened this issue Jul 19, 2024 · 2 comments
Closed
1 of 4 tasks

Does not see file changes when using envDir #17722

ordomalleus opened this issue Jul 19, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation needs reproduction

Comments

@ordomalleus
Copy link

ordomalleus commented Jul 19, 2024

Documentation is

  • Missing
  • Outdated
  • Confusing
  • Not sure?

Explain in Detail

After upgrading from version 5.0 to 5.3, vite stopped tracking files in the folder where envDir was specified. I spent a couple of days discovering this. I had this folder structure.
image

And there was a config for vite that specified envDir.
image

After the update, all changes in the custom folder are no longer tracked.

Your Suggestion for Changes

I found that if I create a subfolder in the custom folder.
image

And change the config , then everything starts working again
image

I have two questions.

  1. Did I do the right thing?
  2. Why did this happen and what is the reason why it worked in version 5.0 but does not work in 5.1+

Reproduction

No response

Steps to reproduce

No response

@ordomalleus ordomalleus added the documentation Improvements or additions to documentation label Jul 19, 2024
@bluwy
Copy link
Member

bluwy commented Jul 22, 2024

Since #15365, we only watched the env files in the envDir, however the issue you're mentioning is that the env files also aren't watched? Can you provide a repro?

Copy link

Hello @ordomalleus. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs reproduction will be closed if they have no activity within 3 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation needs reproduction
Projects
None yet
Development

No branches or pull requests

2 participants