You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See git log for the two changes from npx create-remix@latest.
System Info
I believe this issue can be reproduced on any linux system as long as /proc/sys/fs/inotify/max_user_watches is not extremly high, as the reproduction repo an equivalent ammount of folders and files to my real usecase. I hit this issue multiple times with:
npm run dev should work, despite a deeply nested folder in the project directory. As long as this folder is server.watch.ignored.
Actual Behavior
npm run dev crashes with
$ npm run dev
> dev
> remix vite:dev
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
node:internal/fs/watchers:247
const error = new UVException({
^
Error: ENOSPC: System limit for number of file watchers reached, watch '/home/jan/opensource/repro/remix-vite-watches-ignored-repro/clean-repro/dont_watch/8/8/52/5'
at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
at Object.watch (node:fs:2490:36)
at createFsWatchInstance (file:///home/jan/opensource/repro/remix-vite-watches-ignored-repro/clean-repro/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:42779:17)
at setFsWatchListener (file:///home/jan/opensource/repro/remix-vite-watches-ignored-repro/clean-repro/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:42826:15)
at NodeFsHandler._watchWithNodeFs (file:///home/jan/opensource/repro/remix-vite-watches-ignored-repro/clean-repro/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:42981:14)
at NodeFsHandler._handleFile (file:///home/jan/opensource/repro/remix-vite-watches-ignored-repro/clean-repro/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:43045:23)
at NodeFsHandler._addToNodeFs (file:///home/jan/opensource/repro/remix-vite-watches-ignored-repro/clean-repro/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:43287:21)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (file:///home/jan/opensource/repro/remix-vite-watches-ignored-repro/clean-repro/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:44480:10)
at NodeFsHandler._addToNodeFs (file:///home/jan/opensource/repro/remix-vite-watches-ignored-repro/clean-repro/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:43295:18) {
errno: -28,
syscall: 'watch',
code: 'ENOSPC',
path: '/home/jan/opensource/repro/remix-vite-watches-ignored-repro/clean-repro/dont_watch/8/8/52/5',
filename: '/home/jan/opensource/repro/remix-vite-watches-ignored-repro/clean-repro/dont_watch/8/8/52/5'
}
Node.js v20.18.0
The text was updated successfully, but these errors were encountered:
I am unsure, though, wether this would have unintended side efects.
Context
I traced runtime mutations to vite config and found that server.watch.ignored is overwritten in the second line. The PR 8320 that introduced that line, didn't seem to intend this beaviour. In fact, it aimed to solve a similar problem #8313 of initentional watching during npm run build. Wheras completely disabling watching during build seems appropriate, doing so for npm run dev is not a solution, as it would break HMR.
Reproduction
Checkout https://github.com/janvogt/remix-vite-watches-ignored-repro, run
npm run dev
and wait a couple of seconds.See
git log
for the two changes fromnpx create-remix@latest
.System Info
I believe this issue can be reproduced on any linux system as long as
/proc/sys/fs/inotify/max_user_watches
is not extremly high, as the reproduction repo an equivalent ammount of folders and files to my real usecase. I hit this issue multiple times with:Here's the requested outpu nevertheless:
Used Package Manager
npm
Expected Behavior
npm run dev
should work, despite a deeply nested folder in the project directory. As long as this folder isserver.watch.ignored
.Actual Behavior
npm run dev
crashes withThe text was updated successfully, but these errors were encountered: