Skip to content

Instantly share code, notes, and snippets.

@Macintoshuser2
Created February 9, 2020 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Macintoshuser2/86de6d926b7d56b944f0e0bcb0bbf8b1 to your computer and use it in GitHub Desktop.
Save Macintoshuser2/86de6d926b7d56b944f0e0bcb0bbf8b1 to your computer and use it in GitHub Desktop.
(node:16704) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
at makeCallback (fs.js:150:11)
at Object.readdir (fs.js:768:14)
at Object.fs.readdir (electron/js2c/asar.js:581:35)
at Object.fs.readdir (electron/js2c/asar.js:581:35)
at getFiles (C:\Users\joshu\Desktop\DevelopmentProjects\JS\electronjs_fs-search-metadata-db\app.js:143:30)
at getFiles.next (<anonymous>)
at C:\Users\joshu\Desktop\DevelopmentProjects\JS\electronjs_fs-search-metadata-db\app.js:128:34
at C:\Users\joshu\Desktop\DevelopmentProjects\JS\electronjs_fs-search-metadata-db\app.js:132:15
(node:16704) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
at makeCallback (fs.js:150:11)
at Object.readdir (fs.js:768:14)
at Object.fs.readdir (electron/js2c/asar.js:581:35)
at Object.fs.readdir (electron/js2c/asar.js:581:35)
at getFiles (C:\Users\joshu\Desktop\DevelopmentProjects\JS\electronjs_fs-search-metadata-db\app.js:143:30)
at getFiles.next (<anonymous>)
at C:\Users\joshu\Desktop\DevelopmentProjects\JS\electronjs_fs-search-metadata-db\app.js:128:34
at C:\Users\joshu\Desktop\DevelopmentProjects\JS\electronjs_fs-search-metadata-db\app.js:132:15
(node:16704) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection
id: 2)
(node:16704) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection
id: 2)
(node:16704) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:16704) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment