Reputation: 151
I am attempting to run an angular application (version 4) on IE11. I have found a solution that I need to uncomment lines from polyfills.ts
However, I am unable to locate that file.
Is it possible that I do not have that file, if so what is the best course of action to take in order for the application to be able to run on IE11?
I am getting the following error: "**Unable to get property 'apply' of undefined or null reference"
Upvotes: 1
Views: 1259
Reputation: 151
I figured out the answer by combining a couple of answers.
First, I never did find the polyfills.ts file, it is not in my project but I did not need it.
In order to fix this problem, I went to my boot-client.ts file and added the following three lines at the top:
import 'reflect-metadata';
import "core-js/client/shim";
import 'zone.js';
This answer was provided to another question, however I added these lines to the boot-client.ts rather than the polyfills.ts file since I did not have that in my project.
Upvotes: 3