nksaraf / vinxi

The Full Stack JavaScript SDK
https://vinxi.vercel.app
MIT License
1.33k stars 57 forks source link

[bug] can't configure file watch #288

Open chaoky opened 2 months ago

chaoky commented 2 months ago

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:

chaoky commented 2 months ago

maybe this should be reported to solidstart instead? I'm using defineConfig from @solidjs/start/config but that calls createApp from vinxi `