ajv-validator/ajv-errors

TypeError: ajv_1.Name is not a constructor

YuDaChao opened this issue · 2 comments

"ajv": "^7.0.0-beta.4",
"ajv-errors": "^2.0.0-beta.0",

const ajv = new Ajv({ allErrors: true })
require('ajv-errors')(ajv)

These versions are not compatible, you need the latest Ajv beta (.7)