angular - 找不到角度模块:错误:无法解析“./app/app.module.ngfactory”
问题描述
我尝试构建我的 Angular 5 应用程序,但在运行“ng build -prod”后出现此错误:
Module not found: Error: Can't resolve './app/app.module.ngfactory' in 'C:\workspace\my-app\src'
然后我运行“./node_modules/.bin/ngc”来查看问题的根源,我收到了这条消息:
error TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["node_modules","bower_components","jspm_packages"]'.
似乎 tsconfig.json 有问题,即使自上次成功构建以来我没有更改它,我得到这个的任何原因是什么?
角度版本:5.0.0
角/cli版本1.7.4
解决方案
推荐阅读
- android - 突然停止从资产中复制 SQLite 数据库
- maven - 包 org.apache.flink.api.java.io.jdbc 不存在
- python - 参考 ID 列向前填充
- android - 带有操作按钮的 FCM 通知
- javascript - 我在 Ext js 中有表,我需要在标签中编写一些逻辑
- string - Python - 选择字符串中的文本,直到找到大于另一个日期的日期
- java - 基于注释而非限定符的 Cdi 运行时 bean 创建/注入
- r - 计算矩阵上同一行中的变量与所有其他变量之间的相关性
- mysql - MySQL按4个字段日期和时间排序
- django - 用户登录时使用 dj-rest-auth 获取身份验证令牌