0
나는 다음과 같은 오류 얻을 :오류 : 파일을 쓸 수 없습니다 '...'이 allowJS 및 OUTDIR 옵션을 사용하여 입력 파일을 덮어 쓰기 때문에
내 tsconfig.json
파일을
{
"compileOnSave": false,
"compilerOptions": {
"allowJs": true,
//"outFile": "./dist/out-tsc",
"outDir": "./dist",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
// "exclude": [
// "node_modules"
// ],
"lib": [
"es2017",
"dom"
]
}
}
내 tsconfig.app.json
파일 :
"extends": "../tsconfig.json",
"compilerOptions": {
"allowJs": true,
//"noEmit": true,
//"outFile": "../out-tsc/app",
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "es2015",
"types": []
},
"exclude": [
"node_modules",
"public",
"test.ts",
"**/*.spec.ts"
]
주석 처리가 해제 된 경우 noEmit
프로젝트가 성공적으로 실행되었지만 비어 있습니다.
Angular CLI: 1.6.0
Node: 8.9.1
OS: win32 x64
Angular: 5.1.0
angular/cli: 1.6.0
angular-devkit/build-optimizer: 0.0.35
angular-devkit/core: 0.0.22
angular-devkit/schematics: 0.0.41
ngtools/json-schema: 1.1.0
ngtools/webpack: 1.9.0
schematics/angular: 0.1.10
schematics/schematics: 0.0.10
typescript: 2.4.2
webpack: 3.10.0