ReferenceError: System is not defined

Hi All,

Why would I be getting the following error:

ReferenceError: System is not defined

I did do some reading on other forums, and someone with a similar error solved it by adding:

<script src="https://code.angularjs.org/tools/system.js"></script>

I added this to my www/index.html file with the other imports. Is this correct?

It has not resolved my issue, and I still get the error when I try and construct an array in Typescript:

this.employeeModels = new Array();

or

this.employeeModels = [];

Any ideas would be appreciated.

Not really the correct way to handle this. Best solution would be to find out what causes the error.

Could you paste a more complete example?