trying to compiling typescript with reference to ng2-bootstrap with gulp in visual studio
<p>Its been a couple of days now that i'm struggling with this problem and i hope somebody can help me out.</p>

<p>I am trying out Angular2 in a aspnet core project. The setup is that i am using a gulpfile.js to build .ts files and transfer everything to the wwwroot folder. Everything is working fine. typescript compiles, the files are transferred and even setting up a 'hello world' angular app works fine..</p>

<p>The problem starts when i try to add a reference to ng2-bootstrap. When i add this compiling typescript will error out with several errors such as this:</p>

<blockquote>
  <p>node_modules/ng2-bootstrap/components/buttons/button-checkbox.directive.d.ts(14,22): error TS1005: '=' expected.</p>
</blockquote>

<p>please access the sample i'm working on here: <a href="https://github.com/skyplusplus/ng2bootstrap-hell" rel="nofollow">https://github.com/skyplusplus/ng2bootstrap-hell</a></p>

<p>how do i get rid of this problem?</p>

<p>-edit-
relevant gulpfile snippet:</p>

<p><code>const tscConfig = require('./tsconfig.json');
var tsProject = typescript.createProject('tsconfig.json');
return tsProject
    .src(tscConfig.files)
    .pipe(sourcemaps.init())
    .pipe(typescript(tsProject))
    .pipe(sourcemaps.write('.'))
    .pipe(gulp.dest(targetPaths.app));
</code></p>