Codesandbox-client: Hot Reloading doesn't work in Next.js sandbox

Created on 13 Aug 2020  ·  9Comments  ·  Source: codesandbox/codesandbox-client

🐛 bug report

Description of the problem

Browser Preview doesn't update automatically when I change and save a file.

image

image

How has this issue affected you? What are you trying to accomplish?

Not having a live preview of my changes makes the feedback loop slow.

Link to sandbox: link (optional)

https://codesandbox.io/s/recursing-shaw-c296s

Your Environment

| Software | Name/Version |
| ---------------- | ------------ |
| Сodesandbox | a44af0611 |
| Browser | Google Chrome Version 84.0.4147.125 (Official Build) (64-bit) |
| Operating System | Windows 10 Enterprise Version 2004 (OS Build 19041.450)

SSE 🐛 Bug

Most helpful comment

Hey!

We are actively working on finding out what's wrong together with Vercel

All 9 comments

Hello,

This is definitely a bug we are seeing in some container sandboxes. Flagging this

Thank you
Sara Vieira

--- original message ---
On August 13, 2020, 12:34 PM GMT+2 [email protected] wrote:

🐛 bug report

Description of the problem

Browser Preview doesn't update automatically when I change and save a file.

How has this issue affected you? What are you trying to accomplish?

Not having a live preview of my changes makes the feedback loop slow.

Link to sandbox: link (optional)

https://codesandbox.io/s/recursing-shaw-c296s

Your Environment
Software Name/Version
Сodesandbox a44af06
Browser Google Chrome Version 84.0.4147.125 (Official Build) (64-bit)
Operating System Windows 10 Enterprise Version 2004 (OS Build 19041.450)

You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub, or unsubscribe.
--- end of original message ---

I have the same problem, even I added sandbox.config.json for activate live reload

Hey!

We are actively working on finding out what's wrong together with Vercel

Is it solved or not?

No, we are still trying to figure out whats happening with zeit

If I download a "nextjs" project from codesandbox and run it locally it still does not have the "hot reload". Is there a way I can fix it to make it work at least locally on my machine?

@kstulgys, I have performed the following operations and hot reload seems to work for me:

  1. Export to ZIP the project linked above,
  2. unzip it locally (in my case to Desktop),
  3. run yarn to install packages,
  4. run yarn dev to start the dev server
  5. browse to localhost:3000,
  6. open pages/index.js with any text editor, modify and save it.

I'm running Windows 10 and yarn 1.22.5

This should be fixed now, so I'm closing the issue. Please reopen if you're still running into issues!

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Saeris picture Saeris  ·  115Comments

AlessandroAnnini picture AlessandroAnnini  ·  25Comments

ryanpcmcquen picture ryanpcmcquen  ·  23Comments

CompuIves picture CompuIves  ·  26Comments

gautamarora picture gautamarora  ·  50Comments