-
Notifications
You must be signed in to change notification settings - Fork 276
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
HMR is not working #1813
Comments
As another data point, the exact same thing happens for me in 21.7.1 as well. Not sure if this is because of a scheme mismatch between the head app and Sitecore or something else. |
Got a note that downgrading to NextJS 13 instead of 14 resolved the issue, so potentially some conflict with a change in NextJS? |
@mg-aceik, @georgechang - can you, please, provide more information in order to reproduce this issue? For me it's not reproducible:
|
Hi @illiakovalenko
|
Hi @mg-aceik , @georgechang , @Davy803
|
Had the same issue in March and was blaming jss sdk for some reason, but yes, it occured to be next.js issue :) |
Hi @mg-aceik , @georgechang , @Davy803, @thezaff , quick update on this, - vercel are working on the problem : vercel/next.js#67983 |
@mg-aceik I closed the ticket, since the issue is fixed on Next.js side and released as a part of 14.2.7 |
Describe the Bug
Hot Module Reloading described here https://nextjs.org/docs/app/api-reference/next-cli#development is not working
Console logs repeatedly:
WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr' failed:
Also the whole window refreshes itself every minute or so.
To Reproduce
npx create-sitecore-jss nextjs,nextjs-sxa,nextjs-multisite,nextjs-xmcloud
npm run start:connected
Expected Behavior
No console logs about
websocket.ts:77 WebSocket connection to 'ws://localhost:3000/_next/webpack-hmr' failed:
and hmr is working when you edit a component and save.Possible Fix
No response
Provide environment information
The text was updated successfully, but these errors were encountered: