I read through existing questions but couldnt find any direction for my issue. I have a parent package, called department and under that I have english and science as packages.
I have few components in English which I have exposed using the export array in the English.module. Similarly, I have done the same for Science.module.
The issue here is,when I try to build using 'npm run build' and while Compiling TypeScript sources through ngc, it throws an error as below.
BUILD ERROR
error TS6059: File 'C:/project/package/english/english.component.ts' is notunder 'rootDir' 'C:/project/package/science/'. 'rootDir' is expected to contain all source files.
The component in science is using a component under english.
This is how my tsconfig is configured,
"baseUrl": "./package,
"rootDir": "./package
I am not sure what is missing but not able to get rid of this error. Any input will be helpful
This is my project structure
- package
- science
- english
Here is my tsconfig.json
{
"compilerOptions": {
"baseUrl": "./package",
"experimentalDecorators": true,
"target": "es5",
"moduleResolution": "node",
"rootDir": "./package",
"skipLibCheck": true,
"types": ["jasmine"]
},
"include": [
"packages/**"
]
}