I'm in nearly a fresh project with the latest v3.0.0-alpha.5. I've started to get this error all of the sudden after running npx @11ty/eleventy --serve:
[11ty] Unhandled rejection in promise: (more in DEBUG output)
[11ty] UNKNOWN: unknown error, watch (via Error)
[11ty]
[11ty] Original error stack trace: Error: UNKNOWN: unknown error, watch
[11ty] at FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)
While troubleshooting, it seems the "Unhandled... (node:internal/fs/watchers:207:21)" was repeating per file that it was:
passing a copy of (3 files)
inside of /blog/ (2 files)
I put blog in .eleventyignore, and the error count went from 5 to 3.
I commented out the setLiquidOptions portion, no difference. Then commented out the addGlobalData, no difference. Commented out the addPassThroughCopy inside of forEach and the error stopped. Tried running outside of a loop, it worked. Used the loop again, still worked with no error. Removed blog from .eleventyignore, still fine. Eventually, the error will come back after a while with no particular pattern.
The only thing I can think of is that I am running the project over the network from my laptop over wifi.
Next time the error comes back I'll try just removing the build artifacts (_site directory) and see if that helps before running it again.
Reproduction steps
(Not sure if anyone will be able to reproduce this, I cannot at will.)
Operating system
Windows 11
Eleventy
3.0.0-alpha.5
Describe the bug
I'm in nearly a fresh project with the latest v3.0.0-alpha.5. I've started to get this error all of the sudden after running
npx @11ty/eleventy --serve
:While troubleshooting, it seems the "Unhandled... (node:internal/fs/watchers:207:21)" was repeating per file that it was:
I put
blog
in .eleventyignore, and the error count went from 5 to 3.The contents of my .eleventy.js:
I commented out the
setLiquidOptions
portion, no difference. Then commented out theaddGlobalData
, no difference. Commented out theaddPassThroughCopy
inside offorEach
and the error stopped. Tried running outside of a loop, it worked. Used the loop again, still worked with no error. Removedblog
from .eleventyignore, still fine. Eventually, the error will come back after a while with no particular pattern.The only thing I can think of is that I am running the project over the network from my laptop over wifi.
Next time the error comes back I'll try just removing the build artifacts (_site directory) and see if that helps before running it again.
Reproduction steps
(Not sure if anyone will be able to reproduce this, I cannot at will.)
Expected behavior
No errors once watcher starts.
Reproduction URL
No response
Screenshots
Screenshot of the error: