当前位置:网站首页>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)
边栏推荐
- JS to determine whether there is a value in the object in the array
- spark sql任务性能优化(基础)
- Review of reflection topics
- php中删除指定文件夹下的内容
- Oracle general ledger balance table GL for foreign currency bookkeeping_ Balance change (Part 1)
- 读《敏捷整洁之道:回归本源》后感
- User login function: simple but difficult
- JSP智能小区物业管理系统
- Common prototype methods of JS array
- SQLI-LABS通关(less2-less5)
猜你喜欢
随机推荐
Oracle 11.2.0.3 handles the problem of continuous growth of sysaux table space without downtime
Check log4j problems using stain analysis
Sqli-labs customs clearance (less15-less17)
CAD secondary development object
Oracle rman自动恢复脚本(生产数据向测试迁移)
Sqli labs customs clearance summary-page1
JS delete the last character of the string
RMAN增量恢复示例(1)-不带未备份的归档日志
SQLI-LABS通关(less15-less17)
php中的数字金额转换大写数字
Oracle rman半自动恢复脚本-restore阶段
MySQL组合索引加不加ID
Sqli-labs customs clearance (less1)
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
php中计算两个日期之前相差多少天、月、年
oracle-外币记账时总账余额表gl_balance变化(上)
ORACLE EBS ADI 开发步骤
UEditor . Net version arbitrary file upload vulnerability recurrence
The boss said: whoever wants to use double to define the amount of goods, just pack up and go
Only the background of famous universities and factories can programmers have a way out? Netizen: two, big factory background is OK








