Joshua | Rem-ChanJ
Denoβ€’3y agoβ€’
10 replies
Joshua | Rem-Chan

error: Uncaught Error: Input watch path is neither a file nor a directory.

Im encountering a weird error when I run a code in Windows that was initially created in a OSX.

It still runs fine in OSX, but in windows its shows the following error (synced through github):
error: Uncaught Error: Input watch path is neither a file nor a directory.
    at new FsWatcher (ext:runtime/40_fs_events.js:17:21)
    at Object.watchFs (ext:runtime/40_fs_events.js:60:10)
    at ext:deno_node/_fs/_fs_watch.ts:58:21
    at Object.action (ext:deno_web/02_timers.js:151:11)
    at handleTimerMacrotask (ext:deno_web/02_timers.js:65:10)
    at eventLoopTick (ext:core/01_core.js:189:21)

I'm not able to diagonise the error, google has nothing about it and I dont use the watch functionality.
The run command was:
deno run --allow-read --allow-env --allow-net --allow-sys  index.ts
Was this page helpful?