Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError [ERR_INVALID_ARG_TYPE]: The "interval" argument must be of type number. Received type string #260

Open
strongpauly opened this issue Oct 22, 2019 · 1 comment

Comments

@strongpauly
Copy link

When using node v10.16.3, this error is thrown:

(node:48837) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "interval" argument must be of type number. Received type string
    at StatWatcher.start (internal/fs/watchers.js:76:3)
    at Object.watchFile (fs.js:1304:10)
    at Gaze._pollFile (<user-dir>/node_modules/gaze/lib/gaze.js:358:10)
@shama
Copy link
Owner

shama commented Oct 22, 2019

The "interval" argument must be of type number. Received type string

Make sure your interval option is not wrapped in quotes: interval: 100 and not interval: '100'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants