ajv icon indicating copy to clipboard operation
ajv copied to clipboard

Does not support in IE11 ?

Open jingyuLin1999 opened this issue 3 years ago • 2 comments

What version of Ajv are you using? Does the issue happen if you use the latest version? "ajv": "^8.6.3". the latest version has the same issue. Ajv options object null


JSON Schema null


Sample data null


Your code

import Ajv from "ajv";

Validation result, data AFTER validation, error messages I just import ajv in vue-cli,it work in chrome, but it report error in IE11. image


What results did you expect?

Are you going to resolve the issue? Not sure how to do.

jingyuLin1999 avatar Jun 30 '22 06:06 jingyuLin1999

Most likely you need to disable Unicode regex via options - it’s not supported in IE 11

epoberezkin avatar Jun 30 '22 11:06 epoberezkin

Thanks for your reply. I try to resolve it by this, but the problem remains. It happens when import AJV instead of new AJV().

import Ajv from "ajv";
const options = {
  unicodeRegExp: false,
  code: { es5: true },
};
const ajv = new Ajv(options);

jingyuLin1999 avatar Jul 01 '22 00:07 jingyuLin1999

ajv version<7.0.0, it work fine in IE11. So I switch the version of 6.12.6. I expect the latest version can also support ie11.

jingyuLin1999 avatar Nov 07 '22 06:11 jingyuLin1999