codesandbox / codesandbox/codesandbox-client
Node.js SSE Sandbox Shows Stale Server Response
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Description of the problem
The sandbox below shows stale server response. The src/index.js file has been moved to index.js (and the main and start in the package.json file updated, including the nodemon src/index.js)
https://codesandbox.io/s/dark-glade-dq2t2?file=/index.js

Repro steps:
- Start a new Node.js sandbox
- Drag the
src/index.jsout of thesrcdirectory into the root - Update the paths in the
package.jsonin bothmainandstart - Change the content in the
index.jsfile - See stale content
How has this issue affected you? What are you trying to accomplish?
I want to have the index.js file in the root in a Node.js sandbox.
Trying to create a demo for Shiki: https://github.com/shikijs/shiki/pull/82#issuecomment-686182578
The errors are causing low confidence in the reproducibility and stability of the sandbox.
Link to sandbox: see above.
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | b0052520f |
| Browser | Chrome 85.0.4183.83 |
| Operating System | macOS Catalina 10.15.6 |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior using the linked CodeSandbox and the listed steps: move src/index.js to index.js, update package.json, and change the file content. Start by checking whether the sandbox still serves the old response after the entry-point changes; done means the root index.js response updates reliably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100