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

[bug] can't configure file watch #288

Open
chaoky opened this issue Apr 29, 2024 · 1 comment
Open

[bug] can't configure file watch #288

chaoky opened this issue Apr 29, 2024 · 1 comment

Comments

@chaoky
Copy link

chaoky commented Apr 29, 2024

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
  • run pnpm dev
@chaoky chaoky changed the title [bug] file watch crashes on big folders [bug] can't configure file watch Apr 29, 2024
@chaoky
Copy link
Author

chaoky commented Apr 29, 2024

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

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

1 participant