UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
tortuvshin opened this issue · comments
Turtuvshin Byambaa commented
UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at makeCallback (fs.js:137:11)
at Object.rename (fs.js:571:14)
at /Users/turtuvshin/Projects/mcute/routes/project.js:139:20
at CoreMongooseArray.forEach (<anonymous>)
at Promise (/Users/turtuvshin/Projects/mcute/routes/project.js:135:30)
at new Promise (<anonymous>)
at /Users/turtuvshin/Projects/mcute/routes/project.js:134:39
at /Users/turtuvshin/Projects/mcute/node_modules/mkdirp/index.js:30:20
at FSReqWrap.oncomplete (fs.js:141:20)
(node:50495) 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)