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

multiple websockets being opened when using HMR #2209

Closed
JoeMattie opened this issue Aug 3, 2019 · 1 comment
Closed

multiple websockets being opened when using HMR #2209

JoeMattie opened this issue Aug 3, 2019 · 1 comment

Comments

@JoeMattie
Copy link

Including multiple packs in a page like:
= javascript_packs_with_chunks_tag 'app', 'project', 'other'

results in three websockets being opened, and the updated chunk being downloaded three times any time an edit is made. Additionally, console show multiple copies of [HMR] Waiting for update signal from WDS... with no connected message. However, HMR is working

What am I doing wrong?

@jakeNiemiec
Copy link
Member

jakeNiemiec commented Aug 5, 2019

Each pack comes with separate embedded webpack runtimes. Please follow the code splitting docs in order to split your packs into chunks.

I give a good example in this comment: #1835 (comment)

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

No branches or pull requests

3 participants