angular - 找不到模块'./app.module.ngfactory'.ts(2307)
问题描述
我已经在这里上传了我的项目:https ://github.com/rezaee/conFusion-test ,实际上它是 2017 年编写的 NativeScript-Angular 项目,版本 5 或 6,我尝试将其更新到 Angular 8,我做到了除了一个名为的文件之外,所有工作都保main.aot.ts
留了下来。在具有此内容的文件中:
// this import should be first in order to load some required settings (like globals and reflect-metadata)
import { platformNativeScript } from "nativescript-angular/platform-static";
import { AppModuleNgFactory } from "./app.module.ngfactory";
platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory);
我明白了
找不到模块'./app.module.ngfactory'.ts(2307)
错误信息。所以我尝试npm installng-factory
了,但它也给了我以下错误:
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN @angular/http@8.0.0-beta.10 requires a peer of @angular/core@8.0.0-beta.10+1.sha-a28b3e3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/http@8.0.0-beta.10 requires a peer of @angular/platform-browser@8.0.0-beta.10+1.sha-a28b3e3 but none is installed. You must install peer dependencies yourself.
npm WARN nativescript-angular@8.0.0 requires a peer of zone.js@^0.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN nativescript-couchbase@1.0.18 requires a peer of tns-core-modules@^3.0.0 but none is installed. You must install peer dependencies yourself.
+ ng-factory@1.1.0
updated 1 package and audited 11952 packages in 25.655s
found 169 vulnerabilities (13 low, 2 moderate, 154 high)
run `npm audit fix` to fix them, or `npm audit` for details
由于我是新学习者并且只是按照视频教程进行操作,我不知道如何解决问题?请帮我解决最后一条错误消息。提前谢谢你!
解决方案
推荐阅读
- c# - 使用javascript在对象数组中循环
- typescript - 用户定义的类型保护,用于验证泛型对象的属性是否全部不为空/未定义
- sql - 选择 XML 值
- php - 如何根据php中的表值使菜单动态化?
- c# - 如何在 Reflection.Emit 中使用条件
- java - GCloud - 无法从 Kubernetes 集群访问 Cloud SQL,但它可以在本地 PC 上运行
- javascript - 满足条件时将行复制到另一个工作表
- awesome-wm - alsabar 小部件未显示(lain)
- machine-learning - 预测期间的小批量大小
- apache-spark - 从 Spark 中删除分区