Skip to content
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

Parcel dev server randomly crashes when trying to unlink a file in the dist directory. #9608

Closed
nneil opened this issue Apr 2, 2024 · 1 comment

Comments

@nneil
Copy link

nneil commented Apr 2, 2024

> parcel --open

[HPM] Proxy created: /api  -> http://localhost:8787/
Server running at http://localhost:1234
⠏ Packaging index.[hash].css...
node:fs:1874
  binding.unlink(path);
          ^

Error: ENOENT: no such file or directory, unlink 'C:\Users\neil\Projects\cloudflare\dist\index.html.30336.1c'
    at Object.unlinkSync (node:fs:1874:11)
    at WriteStream.<anonymous> (C:\Users\neil\Projects\cloudflare\node_modules\@parcel\fs\lib\index.js:1024:83)
    at Object.onceWrapper (node:events:633:26)
    at WriteStream.emit (node:events:530:35)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'unlink',
  path: 'C:\\Projects\\cloudflare\\dist\\index.html.30336.1c'
}

The dev server randomly crashes. I'm note using the "dist" directory, but it still writes stuff there.

package.json fragment

  "files": [],
  "engines": {
    "node": ">=20.0.0"
  },
  "parcel": {},
  "source": [
    "src/index.html",
    "src/login/index.html"
  ],
  "targets": {
    "default": {
      "distDir": "_site"
    }
  }
}
Software Version(s)
Parcel 2.12.0
Node v20.12.0
npm/Yarn 10.5.0
Operating System Win 10
@mischnic
Copy link
Member

mischnic commented Apr 5, 2024

Duplicate of #8615

@mischnic mischnic marked this as a duplicate of #8615 Apr 5, 2024
@mischnic mischnic closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants