angular 项目8升级9 踩坑

* * * is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.

我把项目从7升级到8,没见报这种错误。

我把项目从8升级到9之后   ng serve --open  就一直报错,妈的,老子找了好久的资料,终于找到了

https://*.com/questions/52441509/ts-is-missing-from-the-typescript-compilation-please-make-sure-it-is-in-your-ts

7

In my case had a case mistake while importing the class in another component:

import { MyClass } from '../../../shared/models/Myclass';

The file was called MyClass.ts (capital C) and import from ../../../Myclass (lower c).

现在时间2020-10-18 03:25。草。

 

注意文件名称大小与ts中引用文件的路径是否一致,最好还是全部改小写吧。

 

ERROR in ./src/app/core/models/filereg.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: ******** is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.

上一篇:揭秘webpack plugin


下一篇:2016-2017 CT S03E07: Codeforces Trainings Season 3 Episode 7 - HackerEarth Problems Compilation 解题报告