if a huge directory is present in the tree, vinxi dev will crash with
node:internal/fs/watchers:247
const error = new UVException({
^
Error: ENOSPC: System limit for number of file watchers reached, watch 'SOME_FILE_PATH'
I have a huge nix cache inside my project, I'm not sure if vinxi watches every file by default,
or if it's finding stuff that matches inside the cache, the ideal solution for my case, would be to simply not watch this directory,
this also happens in vite by default, but here configuring server.watch.ignored in defineConfig had no effect.
to reproduce this:
clone some example with pnpm create solid
clone a huge repo in the same folder git clone https://github.com/NixOS/nixpkgs
if a huge directory is present in the tree,
vinxi dev
will crash withI have a huge nix cache inside my project, I'm not sure if vinxi watches every file by default, or if it's finding stuff that matches inside the cache, the ideal solution for my case, would be to simply not watch this directory, this also happens in vite by default, but here configuring
server.watch.ignored
in defineConfig had no effect.to reproduce this:
pnpm create solid
git clone https://github.com/NixOS/nixpkgs
pnpm dev