-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Fresh installation of v2.1.0, on MacOS Ventura 13.4.1...
I've installing precise-watcher into a brand new JS project, where I have not yet created/needed a .gitignore file. I'm finding that a basic use of precise-watcher will throw an error attempting to open .gitignore.
If I touch .gitignore and then re-run the watch task, it does not error and successfully listens for changes.
⟫ npm run -s watch
Starting precise-watcher
[Error: ENOENT: no such file or directory, open '/Users/[...]/repo/.gitignore'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/[...]/repo/.gitignore'
}
Usage: [...]
TypeError: Cannot read properties of undefined (reading 'map')
at module.exports (/Users/[...]/repo/node_modules/precise-watcher/src/start.js:6
1:56)
at async Object.handler (/Users/[...]/repo/node_modules/precise-watcher/bin/cli:
28:5)
Stopping precise-watcher
1 ✘
⟫ touch .gitignore
⟫ npm run -s watch
Starting precise-watcher
^C
Stopping precise-watcher
⟫ Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels