当我尝试通过Visual Studio 2015构建我的项目时,我得到了这些奇怪的错误,在互联网上搜索了很多东西并尝试了很多东西,但没有运气。任何人都可以帮我解决这个问题
错误TS2307构建:找不到模块 ' ./ router_preloader&#39 ;. GLD.CMS.SOA.WebCli C:\ TFS \ ICTDevelopment \ NET \ GLD.CMS.SOA \ GLD.CMS.SOA.WebCli \ node_modules \ @angular \ router \ src \ router_module.d.ts 13
错误TS2430构建:接口' NodeBuffer'错误地延伸 接口 ' Uint8Array&#39 ;. GLD.CMS.SOA.WebCli C:\ TFS \ ICTDevelopment \ NET \ GLD.CMS.SOA \ GLD.CMS.SOA.WebCli \ typings \ globals \ node \ index.d.ts 415
错误TS2307无法找到模块' ./ util / lang'。 TypeScript Virtual 项目C:\ TFS \ ICTDevelopment \ NET \ GLD.CMS.SOA \ GLD.CMS.SOA.WebCli \ node_modules \ @angular \ core \ src \ core_private_export.d.ts 38 Active
错误TS2307无法找到模块 ' ./ router_preloader&#39 ;. C:\ TFS \ ICTDevelopment \ NET \ GLD.CMS.SOA \ GLD.CMS.SOA.WebCli \ node_modules \ @angular \ router \ src \ index.d.ts 16 Active
错误TS2307无法找到模块' ./ router_preloader'。 TS2430接口 ' NodeBuffer'错误地扩展了界面' Uint8Array'。种类 财产'填补'是不相容的。 输入'(值:any,offset?:number,end?:number)=>缓冲'不能分配类型'(值:数字,开始?:数字,结束?:数字) =>这个&#39 ;. 输入'缓冲区'不能分配给'这个'。 TypeScript Virtual 项目C:\ TFS \ ICTDevelopment \ NET \ GLD.CMS.SOA \ GLD.CMS.SOA.WebCli \ typings \ globals \ node \ index.d.ts 415 Active
我的tsconfig文件
{
"compileOnSave": true,
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noImplicitAny": false,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"outDir": "wwwroot/app"
},
"exclude": [
"node_modules",
"typings/main.d.ts",
"typings/main"
]
}
的package.json
{
"name": "gld-soa",
"version": "1.0.0",
"scripts": {
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"typings": "typings",
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" "
},
"license": "ISC",
"dependencies": {
"@angular/common": "~2.1.0",
"@angular/compiler": "~2.1.0",
"@angular/core": "~2.1.0",
"@angular/forms": "~2.1.0",
"@angular/http": "~2.1.0",
"@angular/platform-browser": "~2.1.0",
"@angular/platform-browser-dynamic": "~2.1.0",
"@angular/router": "~3.1.0",
"@angular/upgrade": "~2.1.0",
"core-js": "^2.4.1",
"es6-shim": "^0.35.1",
"reflect-metadata": "0.1.8",
"rxjs": "5.0.0-beta.12",
"systemjs": "0.19.39",
"zone.js": "^0.6.25",
"angular-in-memory-web-api": "~0.1.5",
"bootstrap": "^3.3.7",
"primeng": "^1.0.0-beta.17"
},
"devDependencies": {
"concurrently": "^3.0.0",
"gulp": "^3.9.1",
"gulp-concat": "^2.6.0",
"gulp-cssmin": "^0.1.7",
"gulp-uglify": "^1.5.3",
"gulp-util": "^3.0.7",
"gulp-rename": "^1.2.2",
"lite-server": "^2.2.2",
"typescript": "2.0.3",
"typings": "^1.4.0",
"rimraf": "2.2.8",
"lodash": "^4.13.1"
}
}