Closed Sunil1890 closed 6 years ago
Could you please share your tsconfig file?
Needs to be under the first level of tsconfig instead of compilerOptions
.
{
"compileOnSave": false,
"include": ["node_modules/angular-bootstrap-md/**/*.ts", "src/**/*.ts"],
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}
Please add below properties into tsconfig.json: "compileOnSave": false, "include": ["src/*/.ts"], "files": [ "src/app/mocked_data.ts" ], "compilerOptions": {...
Make sure to add these "include" and "files" properties before "compilerOptions". The "files" property should contain the path of the ts file within the project (which is src/app/mocked_data.ts in my example).
Srinis-MacBook-Pro:project-md-integration srini$ ng serve --open error TS5023: Unknown compiler option 'include'.
Error: error TS5023: Unknown compiler option 'include'.