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

 

 

 原因:

Callback must be a function. Received undefined

 

 

正确应该为:

Callback must be a function. Received undefined

相关文章:

  • 2021-10-24
  • 2021-12-16
  • 2020-04-18
  • 2021-09-03
  • 2021-04-21
  • 2021-06-28
  • 2021-05-26
  • 2021-11-09
猜你喜欢
  • 2021-10-29
  • 2021-10-21
  • 2021-07-15
  • 2021-07-05
  • 2021-05-26
  • 2021-12-21
  • 2021-09-24
相关资源
相似解决方案