'How to get an instance of ajv-errors

I’m using Jsonforms with angular 11. I would like to use ajv-errors to customize the error messages. I need to wrap my instance of ajv in an instance of ajv-errors, however I for the life of me cannot figure out how to get an instance of ajv-errors.

I’ve tried: import {ajv-errors} from “ajv-errors” Ajv : ajv = createAjv{ allErrors: true} AjvErrors: ajvErrors = {ajv}; …customize error message object

But I get the error that angular cannot find ajv-errors, and can’t find the dependency, however it’s in my angular.Json as well as my node_modules. I’m really confused and feel very silly asking this question… I can’t even import the library into my class. How can I use ajv-errors in angular and get an instance of the object?? Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source