У меня есть веб-сайт Angular, сборка работает, если я не использую --prod, я попытался установить allowJs: false, сборка прошла, но сайт не работает.Вот файлы конфигурации:
tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
},
"include": [
"src/**/*",
"node_modules/json-typescript-mapper/libs/utils.ts",
"node_modules/angular2-logger/app/core/level.ts",
"node_modules/angular2-logger/app/core/logger.ts",
"node_modules/angular2-logger/app/core/providers.ts"
]
}
tsconfig.app.json
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "es2015",
"types": [],
"allowJs": true
},
"exclude": [
"test.ts",
"node_modules",
"definitions",
"**/*.spec.ts"
]
}
Ошибка:
error TS5055: cannot write file D:/**/node_modules/core-js/modules/es7.reflect.get-own-metadata.js' because it would overwrite input file. Adding a tsconfig.json file will help organze projects that contain both Typescript and Javascript files. Learn more at https://aka.ms/tsconfig
У вас есть идеи?