Angular 2 - IE11 'webpackJsonp' property value is null or undefined, not a Function object

I am new to Angular 2. I installed Angular -CLI (after https://github.com/angular/angular-cli ) and created a sample project.

Now I created the application using "ng build -prod" and had the "dist" folder hosted in IIS. When I browse the site using "localhost / index.html" in IE11, everything works. At that moment, when I look at the same site using the server address "ServerName / index.html", I get:

IE11 The value of the 'webpackJsonp' property is null or undefined, not a Function object

However, doing the same in GoogleChrome and Firefox is just fine!

Your help / advice is appreciated!

+5
source share
1 answer

I get it. I had IE11 in compatibility mode. I deleted it and now everything works. -

+6
source

Source: https://habr.com/ru/post/1258832/


All Articles