Sveltekit vite max file watchers reached

Question:

I had a running project yesterday when I press run. Today, when I try to run I get

node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/runner/qlik-meta-explorer/vite.config.js'
    at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
    at Object.watch (node:fs:2418:34)
    at createFsWatchInstance (file:///home/runner/qlik-meta-explorer/node_modules/vite/dist/node/chunks/dep-68d1a114.js:52104:17)
    at setFsWatchListener (file:///home/runner/qlik-meta-explorer/node_modules/vite/dist/node/chunks/dep-68d1a114.js:52151:15)
    at NodeFsHandler._watchWithNodeFs (file:///home/runner/qlik-meta-explorer/node_modules/vite/dist/node/chunks/dep-68d1a114.js:52306:14)
    at NodeFsHandler._handleFile (file:///home/runner/qlik-meta-explorer/node_modules/vite/dist/node/chunks/dep-68d1a114.js:52370:23)
    at NodeFsHandler._addToNodeFs (file:///home/runner/qlik-meta-explorer/node_modules/vite/dist/node/chunks/dep-68d1a114.js:52612:21)
    at async file:///home/runner/qlik-meta-explorer/node_modules/vite/dist/node/chunks/dep-68d1a114.js:53607:21
    at async Promise.all (index 1)
Emitted 'error' event on FSWatcher instance at:
    at FSWatcher._handleError (file:///home/runner/qlik-meta-explorer/node_modules/vite/dist/node/chunks/dep-68d1a114.js:53803:10)
    at NodeFsHandler._addToNodeFs (file:///home/runner/qlik-meta-explorer/node_modules/vite/dist/node/chunks/dep-68d1a114.js:52620:18)
    at async file:///home/runner/qlik-meta-explorer/node_modules/vite/dist/node/chunks/dep-68d1a114.js:53607:21
    at async Promise.all (index 1) {
  errno: -28,
  syscall: 'watch',
  code: 'ENOSPC',
  path: '/home/runner/qlik-meta-explorer/vite.config.js',
  filename: '/home/runner/qlik-meta-explorer/vite.config.js'
}

I have no idea how to troubleshoot. Please help.

Repl link/Link to where the bug appears:

https://replit.com/@goldbergjeffrey/qlik-meta-explorer?v=1#README.md

Screenshots, links, or other helpful context:

Using Sveltekit template as a starter. Doesn’t happen in other sveltekit repls I’ve created. just this one.

code snippet

Seems to have resolved itself. However, would like to understand it if anyone has thoughts.