jss icon indicating copy to clipboard operation
jss copied to clipboard

HMR is not working

Open mg-aceik opened this issue 8 months ago • 7 comments

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

  1. npx create-sitecore-jss nextjs,nextjs-sxa,nextjs-multisite,nextjs-xmcloud
  2. 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

  • Sitecore Version: XM Cloud
  • JSS Version: 22.0.0
  • Browser Name and version: Chrome latest
  • Operating System and version (desktop or mobile): Windows 11
  • Link to your project (if available): n/a

mg-aceik avatar Jun 06 '24 04:06 mg-aceik