当前位置:网站首页>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 06:25:00 【android_Mr_夏】
简介
在创建angular项目的时候,打包生成dist文件出现下列错误:
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
解决方案:
把ng build –prod替换成ng build –env=prod,接下来就会编译成功。
原因:这并不是建立在aot的基础之上的,ng build –env = prod:用environment.prod.ts替换environment.ts,但它是一个简单的ng build。ng build –prod:使用aot + environment.prod.ts替换的改进版本(之前,它是ng build –prod –aot)
边栏推荐
- User login function: simple but difficult
- Laravel8中的find_in_set、upsert的使用方法
- Build FRP for intranet penetration
- sqli-labs通关汇总-page1
- Message queue fnd in Oracle EBS_ msg_ pub、fnd_ Application of message in pl/sql
- Oracle EBS interface development - quick generation of JSON format data
- Proteus -- RS-232 dual computer communication
- Thinkphp5中一个字段对应多个模糊查询
- Oracle general ledger balance table GL for foreign currency bookkeeping_ Balance change (Part 1)
- Sqli-labs customs clearance (less18-less20)
猜你喜欢
Sqli labs customs clearance summary-page1
In depth study of JVM bottom layer (IV): class file structure
Sqli-labs customs clearance (less2-less5)
CSRF攻击
UEditor . Net version arbitrary file upload vulnerability recurrence
中年人的认知科普
sqli-labs通关汇总-page2
Sqli - Labs Clearance (less6 - less14)
JSP intelligent community property management system
CAD二次开发 对象
随机推荐
SQL injection closure judgment
ORACLE EBS接口开发-json格式数据快捷生成
ORACLE EBS ADI 开发步骤
Sqli labs customs clearance summary-page4
php中获取汉字拼音大写首字母
Ingress Controller 0.47.0的Yaml文件
ORACLE 11G SYSAUX表空间满处理及move和shrink区别
[leetcode question brushing day 35] 1060 Missing element in ordered array, 1901 Find the peak element, 1380 Lucky number in matrix
[daily question] - Huawei machine test 01
Message queue fnd in Oracle EBS_ msg_ pub、fnd_ Application of message in pl/sql
DNS攻击详解
ORACLE EBS中消息队列fnd_msg_pub、fnd_message在PL/SQL中的应用
Oracle 11g uses ords+pljson to implement JSON_ Table effect
Sqli labs customs clearance summary-page3
Sqli-labs customs clearance (less2-less5)
Sqli-labs customs clearance (less1)
Laravel8中的find_in_set、upsert的使用方法
php中根据数字月份返回月份的英文缩写
2021-07-05c /cad secondary development create arc (4)
php中的数字金额转换大写数字