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.

Internet Explorer

See original GitHub issue

Yes, I know, but still… Do you support IE 11?

JS lib said

Supported browsers: Chrome, Firefox, Safari, Opera, Edge, Internet Explorer 11.

I tried to run a demo in IE and it fails with an error.

When I add NgJsonEditorModule in app-module.ts my application fails in IE with error:

const BG_TRANSP = url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M1,0H0V1H2V2H1' fill='lightgrey'/%3E%3C/svg%3E");

In other browsers, it runs fine.

Can you help me with this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
VBukharovcommented, Jul 5, 2019

Hi!

I installed additional dependencies in package.json:

"devDependencies": {
    "@angular-builders/custom-webpack": "^7.5.2",
    "@angular-builders/dev-server": "^7.3.1",
    "@babel/core": "^7.4.5",
    "@babel/preset-env": "^7.4.5",
    "babel-loader": "^8.0.6"
}

fixed configuration in angular.json:

      "architect": {
        "build": {
          "builder": "@angular-builders/custom-webpack:browser",
          "options": {
            "customWebpackConfig": {
              "path": "./webpack.config.js",
              "replaceDuplicatePlugins": true
            },

and added webpack config

/**
 * Additional configuration for webpack.
 *
 * @type {module:path}
 */
const path = require('path');

/**
 * Contains webpack loader for ES6 code transpiling.
 * Work around for IE11
 */
module.exports = {
  module: {
    rules: [
      {
        test: /\.m?js$/,
        include: [
          path.resolve(__dirname, 'node_modules', 'vanilla-picker')
        ],
        loader: 'babel-loader',
        options: {
          presets: [
            [
              '@babel/preset-env', {
                targets: {
                  ie: 11
                }
              }
            ]
          ]
        }
      }
    ]
  }
};
0reactions
mariohmolcommented, Jul 5, 2019

Thanks!! I included this guide in the Readme

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internet Explorer - Microsoft Download Center
Download add ons, extensions, service packs, and other tools to use with Internet Explorer.
Read more >
Internet Explorer - Wikipedia
Internet Explorer is a series of graphical web browsers developed by Microsoft which was used in the Windows line of operating systems (in...
Read more >
Internet Explorer 11 has retired and is officially out of support ...
After 25+ years of helping people use and experience the web, Internet Explorer (IE) is officially retired and out of support as of...
Read more >
Internet Explorer - Download
Internet Explorer 9 is the new edition of Microsoft's hugely popular web browser. Building on the success of previous editions of IE with...
Read more >
Internet Explorer | Browser, Downloads, Versions, & Facts
Internet Explorer (IE), World Wide Web (WWW) browser and set of technologies created by Microsoft Corporation, a leading American computer software company.
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