升级到本机脚本8.1.5后出现节点模块问题 [英] Having Node module issue after upgrade to native script 8.1.5

查看:36
本文介绍了升级到本机脚本8.1.5后出现节点模块问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经升级了我的本机脚本项目,该项目在以前的版本上运行得很好。 升级到8.1.5后,出现节点模块错误。

我的Package.json

{
  "description": "Order Next Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "dependencies": {
    "@angular-devkit/build-angular": "^13.1.2",
    "@angular/animations": "^13.1.1",
    "@angular/cli": "^13.1.2",
    "@angular/common": "^13.1.1",
    "@angular/compiler": "^13.1.1",
    "@angular/core": "^13.1.1",
    "@angular/forms": "^13.1.1",
    "@angular/http": "^7.2.16",
    "@angular/platform-browser": "^13.1.1",
    "@angular/platform-browser-dynamic": "^13.1.1",
    "@angular/router": "^13.1.1",
    "@nativescript/angular": "^13.0.1",
    "@nativescript/core": "^8.1.5",
    "@nativescript/firebase": "^11.1.3",
    "@ngtools/webpack": "^13.1.2",
    "@nstudio/nativescript-checkbox": "^2.0.4",
    "@nstudio/nativescript-loading-indicator": "^3.0.1",
    "@types/node": "^17.0.9",
    "font-awesome": "^4.7.0",
    "nativescript-accordion": "^5.0.4",
    "nativescript-drop-down": "^5.0.6",
    "nativescript-feedback": "^2.0.0",
    "nativescript-geolocation": "^5.1.0",
    "nativescript-iqkeyboardmanager": "^1.5.1",
    "nativescript-phone": "^1.4.0",
    "nativescript-ratings": "^1.0.1",
    "nativescript-ripple": "^4.0.1",
    "nativescript-screen-orientation": "^1.0.0",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-listview": "^10.0.2",
    "nativescript-youtubeplayer": "^3.0.1",
    "reflect-metadata": "~0.1.10",
    "rxjs": "~7.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular/compiler-cli": "^13.1.1",
    "@nativescript/android": "8.1.1",
    "@nativescript/schematics": "~0.4.0",
    "@nativescript/types": "^8.1.1",
    "@nativescript/webpack": "^5.0.4",
    "typescript": "^4.5.4"
  },
  "readme": "NativeScript Application",
  "main": "./src/main.ts"
}

我从依赖项中收到以下错误

Click here to see error image

Kindly help me with the solution.

推荐答案

您没有提到您从哪个版本的nativescript升级,但是在迁移nativescript项目时,您必须根据此nativescriptmigration guide to NS6migration guide to NS7migration guide to NS8手动修改代码。

确保按照所有步骤操作,对代码应用所需的更改,包括运行ns migrate

但是,在您提供的示例中,您似乎没有更新导入以匹配角度13和Nativescript 8。请将导入更改为以下内容,您应该没有问题:

import { View, ObservableArray, CoercibleProperty, EventData, Property } from '@nativescript/core';
import { BaseValueAccessor } from "@nativescript/angular";

这篇关于升级到本机脚本8.1.5后出现节点模块问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆