Its been a couple of days now that i'm struggling with this problem and i hope somebody can help me out.
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..
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:
node_modules/ng2-bootstrap/components/buttons/button-checkbox.directive.d.ts(14,22): error TS1005: '=' expected.
please access the sample i'm working on here: https://github.com/skyplusplus/ng2bootstrap-hell
how do i get rid of this problem?
-edit- relevant gulpfile snippet:
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));