I am new to angular JS. I have worked through test application in https://angular.io/guide/architecture 'Tour of Heroes'
Their i got below error while Splitting Component into two. Please help to get rid off this issue.
ERROR in ./src/app/hero.ts
Module build failed: Error: c:\node_modules\@angular\cli\Sample\angular-tour-of-heroes\src\app\hero.ts is not part of the compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
at AngularCompilerPlugin.getCompiledFile (c:\node_modules\@angular\cli\Sample\angular-tour-of-heroes\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:619:23)
at plugin.done.then (c:\node_modules\@angular\cli\Sample\angular-tour-of-heroes\node_modules\@ngtools\webpack\src\loader.js:467:39)
at <anonymous>
@ ./src/app/hero-detail/hero-detail.component.ts 11:0-31
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts