Cesium in Angular 2 Typescript app

I've been trying to integrate Cesium into our application, but I can't get around the following error:

Error: Core/PolygonPipeline missing ThirdParty/earcut-2.1.1

The pertinent parts of my typescript file are:

declare var Cesium: any;
require('/node_modules/cesium/Build/Cesium/Cesium.js');

export class Component {
    constructor() {
        var viewer = new Cesium.Viewer('cesiumContainer');
    };
}

Any help would be appreciated.

Hello,

What version of Cesium are you using?

Do you think your error might be related to this? https://github.com/AnalyticalGraphicsInc/cesium/pull/4169

Best,

Hannah