I have upgraded my application from angular 4 to angular 6. I am getting the following error. I have already added the include files in the tsConfig. I am getting the error while running ng test. I wonder why it is complaining of a file under @wtw folder when it is included in the tsConfig
"include": [
"./src/**/*",
"./node_modules/@wtw/**/*",
"./node_modules/@types/**/*"
]
Error message
ERROR in ./node_modules/@wtw/platform/services/index.ts
Module build failed (from ../node_modules/@ngtools/webpack/src/index.js):
Error: C:\vstsprojects\testproject\testproject.ClientSide\node_modules\@wtw\platform\services\index.ts is missing from the TypeScript compilation. Please
make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an
issue in the library repository to alert its author and ask them to package the library using the Angular Package Format .
at AngularCompilerPlugin.getCompiledFile (C:\vstsprojects\testproject\testproject.ClientSide\node_modules\@ngtools\webpack\src\packages\ngtools\webpac
k\src\angular_compiler_plugin.ts:988:15)
at plugin.done.then (C:\vstsprojects\testproject\testproject.ClientSide\node_modules\@ngtools\webpack\src\packages\ngtools\webpack\src\loader.ts:49:29
)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
@ ./src/app/effects/risk-portfolio/risk-portfolio.effect.spec.ts 5:17-50
@ ./src sync \.spec\.ts$
@ ./src/test.ts
tsConfig
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"baseUrl": "src",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types",
"type-definition"
],
"lib": [
"es2017",
"dom"
]
},
"include": [
"./src/**/*",
"./node_modules/@wtw/**/*",
"./node_modules/@types/**/*"
]
}
from Module build failed ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property
No comments:
Post a Comment