nue: Vim "4913" file causes hotreload to fail

I reinstalled Nue with the latest version of bun. Tested it out with bun create nue@latest and I chose the hot reload test preset.

Everytime I change something in the source files, my terminal returns Removed .dist/dev/4913 Everytime, no matter what file I edit or delete and it does not hot reload. To force it to reload I have to delete the dist folder and restart the nue command in the terminal.

`✓ Initialize ./.dist/dev nue.js diffdom.js page-router.js app-router.js mount.js hotreload.js error.css favicon.ico

✓ Nue 0.1.7 • Bun 1.0.18 ✓ Serving site from ./.dist/dev ✓ Building site to: ./.dist/dev

✓ Processing styles 3 media.css content.css layout.css

✓ Generating pages 1 index.md

✓ Copying static files 1 hello.jpg

Time taken: 128ms

http://localhost:8080/ ✓ Removed .dist/dev/4913 `

Extra details: Project was created in the downloads directory of the home directory. Bun was not installed with root. Issue recreated using different presets like the app skeleton and hot reload but also initializing a project myself. I’m on Debian sid. Nue v0.1.7. Bun v1.0.18. Node v18.19.0.

About this issue

  • Original URL
  • State: open
  • Created 6 months ago
  • Comments: 18 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Are you using Vim by any chance? Noticed that it creates a file called 4913. Likely relates to that.

Even after updating it seems your commit didn’t take place, so I just edited the file myself. Even though bunx nuekit --version says I have 0.3.1 However, it seems that the problem is still here.

Unfortunately no. Maybe it’s just a Linux thing? But I did notice when trying to track the issue down, after editing a file with Vim, the XHR request originating from line 4 in hotreload.js wouldn’t fire anymore Although on my machine it’s actually line 65.