You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
And there was a config for vite that specified envDir.
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.
And change the config , then everything starts working again
I have two questions.
Did I do the right thing?
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
The text was updated successfully, but these errors were encountered:
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?
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.
Documentation is
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](https://private-user-images.githubusercontent.com/12936839/350395248-5e4ef64f-3912-4579-8cf5-f3219e08ed1f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTc2OTEsIm5iZiI6MTcyNTU5NzM5MSwicGF0aCI6Ii8xMjkzNjgzOS8zNTAzOTUyNDgtNWU0ZWY2NGYtMzkxMi00NTc5LThjZjUtZjMyMTllMDhlZDFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDA0MzYzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBjN2VjMGMyZmQwNTYyZmRmNDI1ODYyNTJiNDhlNmE3Y2U1NzBmNGU3MTVlOTBkNTY4OTBkMjU1YmFlOGJkMzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LK6GilxBIIFfAfku14cEpBnlh98OiuxoF3tBov0YbQw)
And there was a config for vite that specified envDir.
![image](https://private-user-images.githubusercontent.com/12936839/350395738-13a9f5c0-fc4b-4c53-87fe-d678300ec3a4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTc2OTEsIm5iZiI6MTcyNTU5NzM5MSwicGF0aCI6Ii8xMjkzNjgzOS8zNTAzOTU3MzgtMTNhOWY1YzAtZmM0Yi00YzUzLTg3ZmUtZDY3ODMwMGVjM2E0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDA0MzYzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE3N2RjZTA3YjhjMzY1OWNiMzIwODg4MDc2NTgzZmIwOWQyMGI1ZDQ1NDRkOTY0ZjY2YTlmODQyZTY5YWVkZjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Bd8W5zzEI291A88FGS8sKOUPdBRBsgahP3dFS-9eFwA)
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](https://private-user-images.githubusercontent.com/12936839/350396483-5505b827-b472-484a-a1bb-7370b51a5a9f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTc2OTEsIm5iZiI6MTcyNTU5NzM5MSwicGF0aCI6Ii8xMjkzNjgzOS8zNTAzOTY0ODMtNTUwNWI4MjctYjQ3Mi00ODRhLWExYmItNzM3MGI1MWE1YTlmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDA0MzYzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3OGVhOGU2YjY0N2FhZjQzNjlmZjJjNThkNTcwY2IwNzkxYjk1Njk0MTY5NGRmMzJiYTkyNDQ2OGY2ZmI1NzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4bGdxLt7ynhicPipkbCrVvxFfjd_L0aj-jEdSio2xvQ)
And change the config , then everything starts working again
![image](https://private-user-images.githubusercontent.com/12936839/350396762-0350705a-4176-4c83-bffe-9c26c9fd38c1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTc2OTEsIm5iZiI6MTcyNTU5NzM5MSwicGF0aCI6Ii8xMjkzNjgzOS8zNTAzOTY3NjItMDM1MDcwNWEtNDE3Ni00YzgzLWJmZmUtOWMyNmM5ZmQzOGMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDA0MzYzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFmNWM1ZjQ0M2Q1YzkzOTUxNWU1ZWNmNjVkZTNiZjA0MjdhMGEwNzk3ZGUxZTczMTc1MDQzZDg4ZDMxZWQ3ZjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WsNgfOYwdSwnXSYVVBwYgeT1R9Gv3ytKVHuBz1OiQvo)
I have two questions.
Reproduction
No response
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: