rxjs5 - Intermittent Typescript errors in .d.ts files under rxjs and angular/matterials -
i intermittent long list of errors in .d.ts files under rxjs , angular/materials. when goes away "error msb6006 "tsc.exe" exited code 1." comes in place of it. below systemjs.config.js
/** * system configuration angular 2 samples * adjust necessary application needs. */ (function (global) { // map tells system loader things var map = { 'app': 'appscripts', // 'dist', '@angular': 'libs/@angular', '@types':'libs/@types', 'angular2-in-memory-web-api': 'libs/angular2-in-memory-web-api', 'rxjs': 'libs/rxjs', 'lodash': 'libs/lodash', 'moment': 'libs/moment/', 'hammerjs': 'libs/hammer', 'jasmine':"libs/jasmine", 'ng2-bootstrap': 'libs/ng2-bootstrap', 'symbol-observable': 'libs/symbol-observable' }; // packages tells system loader how load when no filename and/or no extension var packages = { 'app': { main: 'main.js', defaultextension: 'js' }, 'rxjs': { defaultextension: 'js' }, 'angular2-in-memory-web-api': { main: 'index.js', defaultextension: 'js' }, 'moment': { main: 'moment.js', defaultextension: 'js' }, 'ng2-bootstrap': { main: 'ng2-bootstrap.js', defaultextension: 'js' }, 'symbol-observable': { main: 'index.js', defaultextension: 'js' }, 'lodash': { main: 'lodash.js', defaultextension: 'js' } }; var ngpackagenames = [ 'common', 'compiler', 'core', 'forms', 'http', 'platform-browser', 'platform-browser-dynamic', 'router', 'router-deprecated', 'upgrade', 'material' ]; // individual files (~300 requests): function packindex(pkgname) { packages['@angular/' + pkgname] = { main: 'index.js', defaultextension: 'js' }; } // bundled (~40 requests): //function packumd(pkgname) { // packages['@angular/' + pkgname] = { main: 'bundles/' + pkgname + '.umd.js', defaultextension: 'js' }; //} function packumd(pkgname) { packages['@angular/' + pkgname] = { main: (pkgname !== 'material' ? 'bundles/' : '') + pkgname + '.umd.js', defaultextension: 'js' }; } // environments should use umd; (karma) need individual index files var setpackageconfig = system.packagewithindex ? packindex : packumd; // add package entries angular packages ngpackagenames.foreach(setpackageconfig); var config = { map: map, packages: packages }; system.config(config); })(this);
this tsconfig.json file
{ "compileonsave": true, "compileroptions": { "typeroots": [ "libs/@types/" ], "emitdecoratormetadata": true, "experimentaldecorators": true, "watch": true, "module": "commonjs", "noemitonerror": true, "noimplicitany": false, "outdir": "../wwwroot/appscripts/", "removecomments": false, "sourcemap": true, "target": "es6", "moduleresolution": "node" }, "exclude": [ "node_modules", "typings/index", "typings/index.d.ts", "typings/browser", "typings/browser.d.ts" ] }
Comments
Post a Comment