当前位置:网站首页>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)
边栏推荐
- Date time API details
- ORACLE 11G SYSAUX表空间满处理及move和shrink区别
- Sqli labs customs clearance summary-page1
- Oracle apex 21.2 installation and one click deployment
- Go common compilation fails
- SQL注入闭合判断
- Network security -- intrusion detection of emergency response
- oracle-外币记账时总账余额表gl_balance变化(上)
- TCP攻击
- Yolov5 practice: teach object detection by hand
猜你喜欢

Flex Jiugongge layout

MapReduce与YARN原理解析

CAD二次开发 对象

2021-07-05c /cad secondary development create arc (4)

Sqli labs customs clearance summary-page3

In depth study of JVM bottom layer (3): garbage collector and memory allocation strategy

Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool

DNS攻击详解

CSRF攻击

2021-07-05C#/CAD二次开发创建圆弧(4)
随机推荐
SQLI-LABS通关(less1)
Differences between ts and JS
Oracle apex Ajax process + dy verification
php中在二维数组中根据值返回对应的键值
spark sql任务性能优化(基础)
Only the background of famous universities and factories can programmers have a way out? Netizen: two, big factory background is OK
Oracle RMAN semi automatic recovery script restore phase
SSM二手交易网站
Go common compilation fails
Yolov5 practice: teach object detection by hand
DNS attack details
软件开发模式之敏捷开发(scrum)
Spark的原理解析
Analysis of MapReduce and yarn principles
ORACLE EBS中消息队列fnd_msg_pub、fnd_message在PL/SQL中的应用
CVE-2015-1635(MS15-034 )遠程代碼執行漏洞複現
ORACLE APEX 21.2安装及一键部署
ORACLE EBS ADI 开发步骤
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory'
JS divides an array into groups of three