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 就一直报错,妈的,老子找了好久的资料,终于找到了
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.
本文作者:youliCC