当前位置:网站首页>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 EBS 和 APEX 集成登录及原理分析
- Flex Jiugongge layout
- Check log4j problems using stain analysis
- JSP智能小区物业管理系统
- oracle-外币记账时总账余额表gl_balance变化(上)
- Oracle EBS ADI development steps
- Cve - 2015 - 1635 (ms15 - 034) réplication de la vulnérabilité d'exécution de code à distance
- Sqli - Labs Clearance (less6 - less14)
- Analysis of MapReduce and yarn principles
- Sqli-labs customs clearance (less18-less20)
猜你喜欢

Sqli labs customs clearance summary-page1

PHP Session原理简析

Sqli-labs customs clearance (less2-less5)

mapreduce概念和案例(尚硅谷学习笔记)

JSP intelligent community property management system

sqli-labs通关汇总-page2

图解Kubernetes中的etcd的访问

Explain in detail the process of realizing Chinese text classification by CNN

UEditor .Net版本任意文件上传漏洞复现

Proteus -- RS-232 dual computer communication
随机推荐
Recursion (maze problem, Queen 8 problem)
中年人的认知科普
Common prototype methods of JS array
Explanation of suffix of Oracle EBS standard table
[leetcode question brushing day 35] 1060 Missing element in ordered array, 1901 Find the peak element, 1380 Lucky number in matrix
Oracle apex Ajax process + dy verification
sqli-labs通关汇总-page1
UEditor . Net version arbitrary file upload vulnerability recurrence
2021-07-19c CAD secondary development creates multiple line segments
ssm垃圾分类管理系统
Sqli-labs customs clearance (less18-less20)
php中树形结构转数组(拉平树结构,保留上下级排序)
TCP攻击
Explain in detail the process of realizing Chinese text classification by CNN
CSRF攻击
Thinkphp5中一个字段对应多个模糊查询
php中在二维数组中根据值返回对应的键值
oracle-外币记账时总账余额表gl_balance变化(上)
Cve-2015-1635 (ms15-034) Remote Code Execution Vulnerability recurrence
Ceaspectuss shipping company shipping artificial intelligence products, anytime, anywhere container inspection and reporting to achieve cloud yard, shipping company intelligent digital container contr