question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get version 8.1.0 to run in IE11

See original GitHub issue

This might be as simple as a one word answer: “no”, but I can’t find anywhere explicitly stating it.

The version of Ajv you are using 8.0.1 The environment you have the problem with Internet Explorer 11 Your code (please make it as small as possible to reproduce the issue)

const options = {
  code: { es5: true },
};
const ajv = new Ajv(options);
ajv.compile(schema);
ajv.validate(formData);

It breaks on the class declaration.

I have tried transpiling it with babel:

module: {
  rules: [
    {
      test: /node\_modules\/.*(ajv)\/.*\.js$/
      use: {
        loader: 'babel-loader',
        options: { presets: '@babel/preset-env' }
      }
    }
  ]
}

As well as adding targets: { ie: '11' }. There are various subsequent errors, but eventually I got stuck on it not accepting the pattern key in a JSON schema: with or without a RexExp around the compileSchema function.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
mummybotcommented, May 5, 2021

That was exactly the issue! IE11 works fine with:

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

// webpack.config.js
module: {
  rules: [
    {
      test: /node\_modules\/.*(ajv)\/.*\.js$/
      use: {
        loader: 'babel-loader',
        options: { presets: '@babel/preset-env' }
      }
    }
  ]
}

Thank you!

0reactions
mummybotcommented, May 5, 2021

Hope this is in the right place for you @epoberezkin

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Install IE 11 in Windows 8.0 - TechNet
IE 11 isn't available for Windows 8. You can install it on Windows 7 and 8.1 (and their equivalent server versions), but Microsoft...
Read more >
Resolving Issues in Internet Explorer 11 (Windows 8) - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
Status update on IE10/11 support with 8.1 - BMC Communities
I have the same 8.1.0 p2 on production and 8.1.01 (SP1) on test server and it works on test server with IE11 and...
Read more >
How do I upgrade IE 10 to IE 11 on Windows 8? - Super User
Windows 10 cannot exist on Windows 8.1, IE 11 is built into it, if you have IE 10 then you don't actually have...
Read more >
3 Ways to Update Microsoft Internet Explorer - wikiHow
1. Go to the Internet Explorer 11 download page at https://support.microsoft.com/en-us/help/18520/download-internet-explorer-11-offline-installer. In a web ... 2. Scroll down to your preferred language. You'll...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found