I've been struggling with this issue for a few days now, and I'm really hoping someone can help me out.
Currently, I am experimenting with Angular2 in an aspnet core project. The setup involves using a gulpfile.js to build .ts files and transfer them to the wwwroot folder. So far, everything is working smoothly - typescript compiles, files are transferred, and even setting up a basic 'hello world' Angular app works without any issues.
The trouble begins when I attempt to add a reference to ng2-bootstrap. Upon doing so, compiling typescript results in multiple errors like this one:
node_modules/ng2-bootstrap/components/buttons/button-checkbox.directive.d.ts(14,22): error TS1005: '=' expected.
You can access the sample I'm working on here: https://github.com/skyplusplus/ng2bootstrap-hell
How can I resolve this issue?
-edit- relevant snippet from my gulpfile:
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));