Unit Test(一)(Error: is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. )

1.  Error: F:\workspace\vmcu-estimator-client\src\environments\environment.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. 

表现分析: log 报错的意思是environment.ts未被Ts的编译器编译,造成在用的时候缺失

Solution:经查阅 tsconfig 相关配置,定位到只需要在tsconfig.spec.ts里include 属性加上environment.ts文件即可

 

2.Error: No value accessor for form control with name: 'selection'

 

表现分析:log中报错的意思没有selection这个form值的访问器,

Solution:其实是缺少form module的问题,参考了许多解决方案不过都没有成功,最后把app.moudule的import复制一边,解决done.

 

posted @   两块五的菜鸟  阅读(672)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
点击右上角即可分享
微信分享提示