当前位置:网站首页>Module not found: Error: Can't resolve './$$_ gendir/app/app. module. ngfactory'
Module not found: Error: Can't resolve './$$_ gendir/app/app. module. ngfactory'
2022-07-02 07:15:00 【android_ Mr_ summer】
brief introduction
Creating angular When the project is , Package generation dist The following error occurred in the file :
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\web\task\src' @ ./src/main.ts 3:0-74 @ multi ./src/main.ts
Solution :
hold ng build –prod Replace with ng build –env=prod, Then it will compile successfully .
reason : This is not based on aot Based on ,ng build –env = prod: use environment.prod.ts Replace environment.ts, But it is a simple ng build.ng build –prod: Use aot + environment.prod.ts Replaced improved version ( Before , It is ng build –prod –aot)
边栏推荐
- ORACLE 11G利用 ORDS+pljson来实现json_table 效果
- ORACLE EBS 和 APEX 集成登录及原理分析
- Only the background of famous universities and factories can programmers have a way out? Netizen: two, big factory background is OK
- RMAN incremental recovery example (1) - without unbacked archive logs
- MySQL无order by的排序规则因素
- Flex Jiugongge layout
- Date time API details
- User login function: simple but difficult
- Proteus -- RS-232 dual computer communication
- JS delete the last character of the string
猜你喜欢
Sqli labs customs clearance summary-page2
SQLI-LABS通关(less2-less5)
如何高效开发一款微信小程序
SQL injection closure judgment
Message queue fnd in Oracle EBS_ msg_ pub、fnd_ Application of message in pl/sql
离线数仓和bi开发的实践和思考
SSM学生成绩信息管理系统
SQLI-LABS通关(less6-less14)
Analysis of MapReduce and yarn principles
ORACLE EBS ADI 开发步骤
随机推荐
UEditor .Net版本任意文件上传漏洞复现
中年人的认知科普
Explain in detail the process of realizing Chinese text classification by CNN
php中的数字金额转换大写数字
Oracle EBS数据库监控-Zabbix+zabbix-agent2+orabbix
oracle-外币记账时总账余额表gl_balance变化(上)
2021-07-05C#/CAD二次开发创建圆弧(4)
第一个快应用(quickapp)demo
PM2 simple use and daemon
Oracle RMAN automatic recovery script (migration of production data to test)
SQLI-LABS通关(less15-less17)
Anti shake and throttling of JS
JS judge whether the object is empty
JSP intelligent community property management system
MySQL中的正则表达式
php中的二维数组去重
Brief analysis of PHP session principle
ORACLE EBS DATAGUARD 搭建
CAD secondary development object
Tool grass welfare post