Skip to content
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

Closed
ckissi opened this issue Mar 19, 2021 · 12 comments
Closed

Constantly loosing HMR connection #6026

ckissi opened this issue Mar 19, 2021 · 12 comments

Comments

@ckissi
Copy link

ckissi commented Mar 19, 2021

image

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

@DeMoorJasper
Copy link
Member

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.

@ckissi
Copy link
Author

ckissi commented Mar 30, 2021

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.

@mdobroggg
Copy link

I'm having the same thing happening to me on Ubuntu after upgrading to 2.0.0-beta.2 from v1.

@mdobroggg
Copy link

#5660 seems to be related

@Bcdo
Copy link

Bcdo commented Apr 22, 2021

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.

@mdobroggg
Copy link

I was able to resolve the issue by switching to webpack

@Bcdo
Copy link

Bcdo commented Apr 23, 2021

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.

@mdobroggg
Copy link

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.

@Bcdo
Copy link

Bcdo commented Apr 23, 2021

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.

@Bcdo
Copy link

Bcdo commented Apr 30, 2021

I ended up transferring the project to snowpack for now.

@mischnic
Copy link
Member

There's not much we can do without more details:

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.

@Offirmo
Copy link

Offirmo commented Aug 9, 2023

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.

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants