首页 > 解决方案 > 找不到模块'./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

由于我是新学习者并且只是按照视频教程进行操作,我不知道如何解决问题?请帮我解决最后一条错误消息。提前谢谢你!

标签: angularmodulenativescriptngfactory

解决方案


推荐阅读