Node --watch crashes on Windows

435 Views Asked by At

My node crashes several times a day with this error message

node:internal/validators:162 throw new ERR_INVALID_ARG_TYPE(name, 'string', value); ^

TypeError [ERR_INVALID_ARG_TYPE]: The "paths[1]" argument must be of type string. Received null at validateString (node:internal/validators:162:11) at resolve (node:path:171:9) at FSWatcher. (node:internal/watch_mode/files_watcher:101:30) at FSWatcher.emit (node:events:515:28) at FSWatcher._handle.onchange (node:internal/fs/watchers:215:12) { code: 'ERR_INVALID_ARG_TYPE' }

I'm tried several versions of node and it crashes with all of them. I'm using --watch option on Windows 10-64bit and run it through VSC terminal.

I found a related question but without any answer... Anyone know how to avoid this?

0

There are 0 best solutions below