在 Angular CLI 项目中找不到源文件 [英] Source File Not Found in Angular CLI project

查看:43
本文介绍了在 Angular CLI 项目中找不到源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目中有这个文件夹但是当我运行时出现此错误

Hi I have this folders in my project But When I run I get this error

有什么想法吗?

问候

推荐答案

重新运行 ng serve 应该有助于解决问题.您必须在本地服务器仍在运行时添加了 empleado.ts,因此 Angular 不会看到该文件.

Rerunning ng serve should help fix the issue. You must have added empleado.ts while the local server was still running, hence Angular would not have seen the file.

这篇关于在 Angular CLI 项目中找不到源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆