当前位置:网站首页>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)
边栏推荐
- sqli-labs通关汇总-page1
- ORACLE 11G SYSAUX表空间满处理及move和shrink区别
- Spark的原理解析
- CVE-2015-1635(MS15-034 )遠程代碼執行漏洞複現
- Oracle EBS interface development - quick generation of JSON format data
- RMAN incremental recovery example (1) - without unbacked archive logs
- Go package name
- Use of interrupt()
- JS divides an array into groups of three
- 叮咚,Redis OM对象映射框架来了
猜你喜欢
离线数仓和bi开发的实践和思考
Yolov5 practice: teach object detection by hand
Flex Jiugongge layout
Network security -- intrusion detection of emergency response
Explain in detail the process of realizing Chinese text classification by CNN
SQLI-LABS通关(less18-less20)
Build FRP for intranet penetration
Basic knowledge of software testing
如何高效开发一款微信小程序
Sqli-labs customs clearance (less1)
随机推荐
Network security -- intrusion detection of emergency response
JS delete the last character of the string
Laravel8中的find_in_set、upsert的使用方法
Pyspark build temporary report error
oracle-外币记账时总账余额表gl_balance变化(上)
sqli-labs通關匯總-page2
JSP intelligent community property management system
oracle apex ajax process + dy 校验
CAD secondary development object
Changes in foreign currency bookkeeping and revaluation general ledger balance table (Part 2)
Oracle apex 21.2 installation and one click deployment
Common prototype methods of JS array
Oracle EBS DataGuard setup
Oracle apex Ajax process + dy verification
Sqli-labs customs clearance (less6-less14)
Oracle RMAN automatic recovery script (migration of production data to test)
Sqli - Labs Clearance (less6 - less14)
DNS攻击详解
Oracle EBS database monitoring -zabbix+zabbix-agent2+orabbix
搭建frp进行内网穿透