Closed hemengke1997 closed 2 years ago
I also have this type of problem with vue and vite-ssr plugin. Could you tell me how you know which file is causing the reload? I was tiring to use Vites-ssr plugin and use there scaffolding template. It is also contently refresh. I tried writing to Vites-ssr plugin about this and they closed the issue saying it is a vite problem without much investigation. I am very annoyed how people balm one another about problems but don't work on the problems. No mater who is to balm it is still an unpleasant user experience for people using there product. I also using yarn i don't know why. I was trying to enable PNP but it didn't work and I wrote them about it and they told me I have to make a better test case. I give up.
An error occurs when hmr are constantly triggered
Can you show what the error is? I don't see any errors when testing out the repro
Yes this is caused by vite not connecting to the websockets(Wich i did not know it was using) it was blocked by systemd. I was running it in a container. I had to do some real big digging to find out what it was. I had to change the value of the port that vite use and allow it to flow. It would be nice it vite would say you need to have to ports opened. The first one obvious the second not so much.
On Sun, Apr 3, 2022, 9:09 AM Bjorn Lu @.***> wrote:
An error occurs when hmr are constantly triggered
Can you show what the error is? I don't see any errors when testing out the repro
— Reply to this email directly, view it on GitHub https://github.com/vitejs/vite/issues/6468#issuecomment-1086865700, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNZ2Z3GKAL7VMNIEN5MGKDVDGJ77ANCNFSM5LX77RAQ . You are receiving this because you commented.Message ID: @.***>
Perhaps we can document this then. I know there has been friction for some users who use Vite inside Docker, and it would be nice to have an official guide on how to set it up. Feel free to contribute if you like!
That would be great, thanks!
On Mon, Apr 4, 2022, 10:19 AM Bjorn Lu @.***> wrote:
Perhaps we can document this then. I know there has been friction for some users who use Vite inside Docker, and it would be nice to have an official guide on how to set it up. Feel free to contribute if you like!
— Reply to this email directly, view it on GitHub https://github.com/vitejs/vite/issues/6468#issuecomment-1087619676, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNZ2Z5TFWJMMUR4STUK5S3VDL3ALANCNFSM5LX77RAQ . You are receiving this because you commented.Message ID: @.***>
@bluwy Should this issue be closed as websocket error will be shown by #7111 and docker documentation is tracked at #4116?
Make sense 👍
Describe the bug
An error occurs when hmr are constantly triggered. I'm not sure if this is a fast-Refresh issue. Hope to get your answer, thank you very much!
Reproduction
https://github.com/hemengke1997/refresh-bug
Reproduction Step
src/Container.ts
System Info
Used Package Manager
yarn
Logs
No response
Validations