ajv-validator / ajv-errors

Custom error messages in JSON Schemas for Ajv validator
https://ajv.js.org
MIT License
282 stars 18 forks source link

Receiving error that a dependency is missing after installing ajv-errors. #142

Closed jpuvogel13 closed 2 years ago

jpuvogel13 commented 2 years ago

Hello all,

I'm trying to use ajv-errors with my jsonforms to implement custom error messages. After wrapping my ajv instance in an ajv-errors instance I am receiving the following error: Error: node_modules/ajv-errors/dist/index.d.ts:1:15 - error TS2305: Module '"ajv"' has no exported member 'Plugin'.

I've run npm install ajv-errors, I wasn't aware of any other dependencies that should be added. If you could take a look I'd appreciate it, thanks.