我正在尝试构建我的应用程序,但收到错误

时间:2018-04-04 14:14:33

标签: angular

我正在尝试构建我的应用程序,但收到错误: “请通过'files'或'include'属性确保它在你的tsconfig中”

ERROR in ./src/app/views/home/home.component.ts
Module build failed: Error: G:\Test\HelloWorldAngular\HelloWorld.Angular\src\app\views\home\home.component.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
    at AngularCompilerPlugin.getCompiledFile (G:\Test\HelloWorldAngular\HelloWorld.Angular\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:674:23)
    at plugin.done.then (G:\Test\HelloWorldAngular\HelloWorld.Angular\node_modules\@ngtools\webpack\src\loader.js:467:39)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

0 个答案:

没有答案