错误:TypeScript编译中缺少C:\ Users \ ruwan \ Documents \ frontend \ src \ app \ components \ create \ create.component.ts

时间:2019-05-13 08:12:58

标签: angular typescript

我正在从事一个有角度的项目。同时发生了这种错误。所以我应该怎么做。

./src/app/components/create/create.component.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: C:\Users\ruwan\Documents\projects\new project\MEANSTACK\frontend\src\app\components\create\create.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 (C:\Users\ruwan\Documents\projects\new project\MEANSTACK\frontend\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:752:23)
    at plugin.done.then (C:\Users\ruwan\Documents\projects\new project\MEANSTACK\frontend\node_modules\@ngtools\webpack\src\loader.js:41:31)
    at process._tickCallback (internal/process/next_tick.js:68:7)

0 个答案:

没有答案