node服务中,@escook,@hapi/joi报错:Cannot mix different versions of joi schemas

1,424 阅读1分钟
  • postman 测试出现 Cannot mix different versions of joi schemas 问题

01.png

  • 解决办法:
    • 将 node_modules/escook/express-joi/index.js 第一行引入换成 const Joi = require('@hapi/joi')

02.png

  • 大功告成,postman 测试通过

3.png