You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and getting this result when I make a change to src/public/panel.html and save:
> [email protected] watch /Users/alex/dev/is/r2
> copy-and-watch ./src/public/**/*.{html,css} ./build --watch
[COPY] ./src/public/panel.html to build/panel.html
[COPY] ./src/public/panel.css to build/panel.css
[WATCH] ./src/public/**/*.html
[WATCH] ./src/public/**/*.css
path.js:28
throw new TypeError('Path must be a string. Received ' + inspect(path));
^
TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.relative (path.js:1268:5)
at findTarget (/Users/alex/dev/is/r2/node_modules/copy-and-watch/index.js:37:33)
at FSWatcher.copy (/Users/alex/dev/is/r2/node_modules/copy-and-watch/index.js:57:14)
at emitOne (events.js:115:13)
at FSWatcher.emit (events.js:210:7)
at FSWatcher.<anonymous> (/Users/alex/dev/is/r2/node_modules/chokidar/index.js:196:15)
at FSWatcher._emit (/Users/alex/dev/is/r2/node_modules/chokidar/index.js:238:5)
at FSWatcher.<anonymous> (/Users/alex/dev/is/r2/node_modules/chokidar/lib/fsevents-handler.js:204:14)
at addOrChange (/Users/alex/dev/is/r2/node_modules/chokidar/lib/fsevents-handler.js:210:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] watch: `copy-and-watch ./src/public/**/*.{html,css} ./build --watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/alex/.npm/_logs/2018-01-22T04_06_25_666Z-debug.log
The text was updated successfully, but these errors were encountered:
Hi, I'm having trouble using
--watch
, I'm running this:npm run watch
with
"watch": "copy-and-watch ./src/public/**/*.{html,css} ./build --watch"
and getting this result when I make a change to
src/public/panel.html
and save:The text was updated successfully, but these errors were encountered: