DenoDDeno
Powered by
VulcanurV
Denoβ€’2y agoβ€’
3 replies
Vulcanur

FsWatcher.close() error : BadResource

Hi community πŸ™‚
I have an error when i try to close watcher after it throw remove event on directory.
Error :
error: Uncaught (in promise) BadResource: Bad resource ID
        this._watcher.close()
error: Uncaught (in promise) BadResource: Bad resource ID
        this._watcher.close()


My goal is to close watcher on specific directory when it is removed.
Perhaps Deno closes automaticaly it when path is removed and send me this error ...
Can you help me please ?

Thank you πŸ˜„
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

error: BadResource: Bad resource ID
v1rtlVv1rtl / help
3y ago
Puppeteer: "BadResource: Bad resource ID" on Ubuntu
DNADDNA / help
3y ago
Deploy -- Reverse proxy getting "close_notify" error
wilsonlewisWwilsonlewis / help
16mo ago
Deno + SvelteKit + Paraglide | Can not run dev server using deno because of "FsWatcher"
NextLegacyNNextLegacy / help
14mo ago