-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Constantly loosing HMR connection #6026
Comments
is there any way you can provide a minimal reproduction case for this? Not sure what causes this without any additional steps to reproduce this. |
Unfortunately, I have no idea. It works and then it stops working for some reason. Actually, nothing helps then. I mean if I restart the process it's the same. After I restart my iMac it works for a few minutes and then stops again. |
I'm having the same thing happening to me on Ubuntu after upgrading to 2.0.0-beta.2 from v1. |
#5660 seems to be related |
I get the same error. When I change something in index.html and save, nothing changes and the console shows console was cleared. If I then save the index.js file, I get the connection to the HMR was lost, but the page does refresh with the html edits. |
I was able to resolve the issue by switching to webpack |
Yeah, I am not sure if I would consider that a solution. I do not need webpack for most of my projects, and Parcel is just to easy and quick to setup with tailwind, I would prefer to be able to use it properly. |
I agree. I use tailwind as well and was really enjoying the simple setup of parcel, but switching to v2 was a nightmare. I had build issue pop up in CI/CD and dev server issue with HMR not working as well as other project specific issues. I spent longer trying to fix parcel and browse the issue threads with no support than it took me to fully convert my app to webpack. Its not a perfect solution, but when there is a lack of support on major issues I can't just wait around for them to be fixed with the project I'm working on. I'd be happy to revisit parcel when all of these issues are fixed as I thought it was pretty great otherwise. If you want to consider webpack, let me know and I can share my config with you for tailwind. |
Yeah, I will take you up on that! Tried a few variants, and to make one myself, but I just cant get it to work right. |
I ended up transferring the project to snowpack for now. |
There's not much we can do without more details:
|
I know this issue is closed, but could the devs also consider making the "HMR connexion lost" a bit more verbose so that we know what’s going wrong? |
If I close npm run dev command and rerun it the problem persists.
It's also browser-independent. Tried Chrome, FF, Safari with the same result.
Parcel: 2.0.0-nightly.489
Node: 14.15.4
npm 6.14.4
OS: MacOS 11.2.3
The text was updated successfully, but these errors were encountered: