美文网首页
eggjs使用中遇到的坑

eggjs使用中遇到的坑

作者: love_program | 来源:发表于2018-11-07 15:36 被阅读167次

    1.mongoose4.x以上启动的时候报的错误

    egg-scripts] Save log file to /root/logs
    [egg-scripts] Wait Start: 1...
    [egg-scripts] Wait Start: 2...
    [egg-scripts] tail -n 100 /root/logs/master-stderr.log
    [egg-scripts] Got error when startup:
    [egg-scripts] /usr/local/www/egg_server/node_modules/_egg@2.13.0@egg/lib/application.js:69
    [egg-scripts]       throw e;
    [egg-scripts]       ^
    [egg-scripts]
    [egg-scripts] TypeError: Cannot read property 'hasOwnProperty' of undefined
    [egg-scripts]     at Singleton.createOneClient [as create] (/usr/local/www/egg_server/node_modules/_egg-mongoose@3.1.1@egg-mongoose/lib/mongoose.js:56:16)
    
    

    解决办法参考https://github.com/eggjs/egg/issues/3081

    相关文章

      网友评论

          本文标题:eggjs使用中遇到的坑

          本文链接:https://www.haomeiwen.com/subject/ffevxqtx.html