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
Importing component named Org in App component. Whenever i save changes of Org component sometimes this error occurred. To resolved this i either start Dev server again or comment some code and un-comment it then refresh the page. Which is of course not ideal.
I'm working in react environment.
In last screenshot, as you can see file is empty. That's why this error is occurring. But i don't understand why it is empty.
watch: {
awaitWriteFinish: true,
},
Setting this flag to true seems to resolve this issue.
To reproduce you can try making changes to any component and save it. There will be time when changes are not reflected. And, when page is refreshed it will give same error as mentioned in title.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Closing due to lack of activity, @sunil-sharma-999 please comment with more information about your system for reference (and we can see if we should reopen it). I don't think we should set awaitWriteFinish due to performance concerns.
Describe the bug
Importing component named Org in App component. Whenever i save changes of Org component sometimes this error occurred. To resolved this i either start Dev server again or comment some code and un-comment it then refresh the page. Which is of course not ideal.
I'm working in react environment.
In last screenshot, as you can see file is empty. That's why this error is occurring. But i don't understand why it is empty.
Setting this flag to true seems to resolve this issue.
Reproduction
https://stackblitz.com/edit/vitejs-vite-rukfvy?file=src%2FTemp.jsx,src%2FApp.jsx,package.json&terminal=dev
Steps to reproduce
To reproduce you can try making changes to any component and save it. There will be time when changes are not reflected. And, when page is refreshed it will give same error as mentioned in title.
System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: