得到;TS2300:重复标识符';账户'&引用;升级到Typescript 2.9.1后出错
在我升级到TypeScript2.9.1(从2.8版)之后,我得到了编译错误 node_modules/typescript/lib/lib.es2017.full.d.ts:33:11 - error TS2300: Duplicate identifier 'Account'.得到;TS2300:重复标识符';账户'&引用;升级到Typescript 2.9.1后出错,typescript,Typescript,在我升级到TypeScript2.9.1(从2.8版)之后,我得到了编译错误 node_modules/typescript/lib/lib.es2017.full.d.ts:33:11 - error TS2300: Duplicate identifier 'Account'. 作为一种解决方法,我使用skipLibCheck:true绕过lib文件中的类型检查,这样就不会出现错误。但我仍然不知道为什么会在2.9.1中出现这种情况 // tsconfig.json { "compiler
作为一种解决方法,我使用
skipLibCheck:true
绕过lib文件中的类型检查,这样就不会出现错误。但我仍然不知道为什么会在2.9.1中出现这种情况
// tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"target": "es2017",
"noImplicitAny": true,
"moduleResolution": "node",
"sourceMap": true,
"outDir": "ts-build",
"baseUrl": ".",
"paths": {
"kernel/*": [
"./server/kernel/*"
]
},
"rootDir": ".",
"allowJs": true,
"typeRoots": [
"node_modules/@types"
],
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"types": [],
"keyofStringsOnly": true
},
"include": [
"server/**/*",
"app.*.js"
],
"exclude": [
"node_modules"
]
}