Vite + Vue app file watch, rebuild not works on docker container #15531
Unanswered
BeycanDeveloper
asked this question in
Q&A
Replies: 2 comments
-
Start a new pull request in StackBlitz Codeflow. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looking at #15492 (comment), I guess you're using docker on Windows. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
there is a
{ usePolling: true }
option in the Vite documentation. If I activate this, yes filewatch works.However, this time the container cannot be closed at all and docker crashes.
Can anyone help with this?
Here are the relevant codes below
Compose
Dockerfile
vite.config.js
In addition, I have examined and searched for many things along with the issue below, but I could not find any results. The only solution right now seems to be usePolling, but when you use it, the container can never be closed and docker crashes.
#4116
Reproduction
https://stackblitz.com/edit/vitejs-vite-rfzxm6?file=docker-compose.yaml,package.json,vite.config.js&terminal=dev
Steps to reproduce
npm run dev
System Info
Used Package Manager
npm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions