title: How do I support Internet Explorer in an Angular 8 application?
body: <p>When I generate a project with Angular CLI (8.0.0), I run <code>ng serve</code>, open the application up in Internet Explorer and I am presented with a blank screen.</p>
  
  <p>I had a look at the <code>polyfills.ts</code> files and I uncommented the following lines:</p>
  
  <pre><code>    import 'classlist.js';
      import 'web-animations-js';
  </code></pre>
  
  <p>I've also removed all core.js imports as Angular 8 supports core.js 3.0 directly.</p>
  
  <p>I've also ran <code>npm i</code>.</p>
  
  <p>package.json:</p>
  
  <pre><code>"dependencies": {
      "@angular/animations": "~8.0.0",
      "@angular/common": "~8.0.0",
      "@angular/compiler": "~8.0.0",
      "@angular/core": "~8.0.0",
      "@angular/forms": "~8.0.0",
      "@angular/platform-browser": "~8.0.0",
      "@angular/platform-browser-dynamic": "~8.0.0",
      "@angular/router": "~8.0.0",
      "classlist.js": "^1.1.20150312",
      "rxjs": "~6.4.0",
      "tslib": "^1.9.0",
      "web-animations-js": "^2.3.1",
      "zone.js": "~0.9.1"
    },
    "devDependencies": {
      "@angular-devkit/build-angular": "~0.800.0",
      "@angular/cli": "~8.0.0",
      "@angular/compiler-cli": "~8.0.0",
      "@angular/language-service": "~8.0.0",
      "@types/node": "~8.9.4",
      "@types/jasmine": "~3.3.8",
      "@types/jasminewd2": "~2.0.3",
      "codelyzer": "^5.0.0",
      "jasmine-core": "~3.4.0",
      "jasmine-spec-reporter": "~4.2.1",
      "karma": "~4.1.0",
      "karma-chrome-launcher": "~2.2.0",
      "karma-coverage-istanbul-reporter": "~2.0.1",
      "karma-jasmine": "~2.0.1",
      "karma-jasmine-html-reporter": "^1.4.0",
      "protractor": "~5.4.0",
      "ts-node": "~7.0.0",
      "tslint": "~5.15.0",
      "typescript": "~3.4.3"
    }
  </code></pre>
  
  <p>tsconfig.json:</p>
  
  <pre><code>{
    "compileOnSave": false,
    "compilerOptions": {
      "baseUrl": "./",
      "outDir": "./dist/out-tsc",
      "sourceMap": true,
      "declaration": false,
      "module": "esnext",
      "moduleResolution": "node",
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "importHelpers": true,
      "target": "es2015",
      "typeRoots": [
        "node_modules/@types"
      ],
      "lib": [
        "es2018",
        "dom"
      ]
    }
  }
  </code></pre>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>browserlists:</p>
  
  <pre><code># This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
  # For additional information regarding the format and rule options, please see:
  # https://github.com/browserslist/browserslist#queries
  
  # You can see what browsers were selected by your queries by running:
  #   npx browserslist
  
  &gt; 0.5%
  last 2 versions
  Firefox ESR
  not dead
  IE 9-11 # For IE 9-11 support, remove 'not'.
  </code></pre>
  
  <p><strong>EDIT 2:</strong></p>
  
  <p>The console in Internet Explorer (11) shows the following errors:</p>
  
  <p>polyfills.js:
  <code>Syntax error (3168, 5)</code>
  (line 3168 beginning) -> <code>class Zone {</code></p>
  
  <p>vendor.js:
  <code>Syntax error (156, 1)</code>
  (line 156 beginning) -> <code>class PlatformLocation {</code></p>
  
  <p>main.ts:
  <code>Syntax error (95, 20)</code>
  (points to the AppComponent)</p>
  
  <p>What else do I need to do?</p>