Angular 5 tsconfig.app.json issue


#1

Getting error

ERROR in ./node_modules/@machinomy/types-truffle-contract/index.d.ts
Module build failed: Error: /home/vibhor/Working/TruffleIssue/web/node_modules/@machinomy/types-truffle-contract/index.d.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 (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (/home/vibhor/Working/TruffleIssue/web/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:674:23)
at plugin.done.then (/home/vibhor/Working/TruffleIssue/web/node_modules/@ngtools/webpack/src/loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:118:7)


#2

What am I missing

{
“extends”: “…/tsconfig.json”,
“compilerOptions”: {
“outDir”: “…/out-tsc/app”,
“baseUrl”: “./”,
“module”: “es2015”,
“typeRoots” : ["./","…/node_modules/@machinomy"],
“types”: [
“jasmine”,
“node”,
“…/node_modules/@machinomy/types-truffle-contract”,
“…/node_modules/@machinomy/types-web3”
]
},
“exclude”: [
“test.ts”,
/*.spec.ts"
],
“files”: [
“test.ts”,
“main.ts”,
“…/node_modules/@machinomy/types-truffle-contract/index.d.ts”
],
“include”: [
"
/.spec.ts",
"**/
.d.ts”,
“…/node_modules/@machinomy/types-truffle-contract/*.d.ts”
]
}