首页 > 其他 > 详细

Callback must be a function. Received undefined

时间:2019-12-22 09:41:11      阅读:421      评论:0      收藏:0      [点我收藏+]
fs.js:143
    throw new ERR_INVALID_CALLBACK(cb);
    ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
    at makeCallback (fs.js:143:11)
    at Object.unlink (fs.js:1024:14)
    at D:\node\littleAlbum\controller\router.js:88:16
    at IncomingForm.<anonymous> (D:\node\littleAlbum\node_modules\formidable\lib\incoming_form.js:107:9)
    at IncomingForm.emit (events.js:210:5)
    at IncomingForm._maybeEnd (D:\node\littleAlbum\node_modules\formidable\lib\incoming_form.js:557:8)
    at D:\node\littleAlbum\node_modules\formidable\lib\incoming_form.js:238:12
    at WriteStream.<anonymous> (D:\node\littleAlbum\node_modules\formidable\lib\file.js:79:5)
    at Object.onceWrapper (events.js:299:28)
    at WriteStream.emit (events.js:210:5) {
  code: ‘ERR_INVALID_CALLBACK‘
}

 

技术分享图片

 

 

 原因:

技术分享图片

 

 

正确应该为:

技术分享图片

Callback must be a function. Received undefined

原文:https://www.cnblogs.com/caiyishuai/p/12078807.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!