最容易举一个例子:
https://github.com/brettdh/zeit-error-demo
require('jsonapi-server')
失败(如果我删除该行,错误就会消失)。
日志错误:
{ Error: Cannot find module '/var/task/package.json'
at webpackEmptyContext (/var/task/user/index.js:39005:9)
at Object.module.exports.s (/var/task/user/index.js:6158:44)
at __webpack_require__ (/var/task/user/index.js:21:30)
at Object.module.exports.webpackEmptyContext.keys (/var/task/user/index.js:38989:14)
at __webpack_require__ (/var/task/user/index.js:21:30)
at module.exports.Object.defineProperty.value (/var/task/user/index.js:85:18)
at Object.<anonymous> (/var/task/user/index.js:88:10)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32) code: 'MODULE_NOT_FOUND' }
在此处交叉发布,但是今天Spectrum.chat的速度确实变慢。
https://spectrum.chat/zeit/now?thread=9fdea285-e149-4fdc-ad54-3e4eced7dc86