Error: getInternalNameOfClass() called on a non-ES5 class: expected RadListViewComponent to have an inner class declaration

Error: getInternalNameOfClass() called on a non-ES5 class: expected RadListViewComponent to have an inner class declaration

我在 angular 中使用 nativescript。安装 nativescript-ui-listview 插件后出现这个错误

Error on worker #1: Error: getInternalNameOfClass() called on a non-ES5 class: expected RadListViewComponent to have an inner class declaration

而 运行 应用程序。

带有警告:

Warning: Invalid constructor parameter decorator in C:/Users/rashi/FNFtoursapp/node_modules/nativescript-ui-listview/angular/fesm2015/nativescript-ui-listview-angular.js: () => [ { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }, { type: IterableDiffers, decorators: [{ type: Inject, args: [IterableDiffers,] }] }, { type: NativeScriptRendererFactory, decorators: [{ type: Inject, args: [NativeScriptRendererFactory,] }] } ]

需要帮助

下面是我的包Json文件

 {
   "nativescript": {
     "id": "org.nativescript.FNFtoursapp",
     "tns-ios": {
       "version": "6.5.0"
     },
     "tns-android": {
       "version": "6.5.3"
     }
   },
   "description": "NativeScript Application",
   "license": "SEE LICENSE IN <your-license-filename>",
   "repository": "<fill-your-repository-here>",
   "scripts": {
     "ngcc": "ngcc --properties es2015 module main --first-only",
     "postinstall": "npm run ngcc"
   },
   "dependencies": {
     "@angular/animations": "~9.1.0",
     "@angular/common": "~9.1.0",
     "@angular/compiler": "~9.1.0",
     "@angular/core": "~9.1.0",
     "@angular/forms": "~9.1.0",
     "@angular/platform-browser": "~9.1.0",
     "@angular/platform-browser-dynamic": "~9.1.0",
     "@angular/router": "~9.1.0",
     "@nativescript/angular": "~9.0.0",
     "@nativescript/theme": "~2.3.0",
     "@nstudio/nativescript-checkbox": "^1.0.0",
     "nativescript-cardview": "^3.2.0",
     "nativescript-plugin-firebase": "^10.5.2",
     "nativescript-ui-listview": "^9.0.2",
     "reflect-metadata": "~0.1.12",
     "rxjs": "^6.5.0",
     "tns-core-modules": "~6.5.0",
     "zone.js": "~0.10.3"
   },
   "devDependencies": {
     "@angular/compiler-cli": "~9.1.0",
     "@ngtools/webpack": "~9.1.0",
     "nativescript-dev-webpack": "~1.5.0",
     "tns-platform-declarations": "~6.5.0",
     "typescript": "~3.8.3"
   },
   "readme": "NativeScript Application"
 }

tsconfig.jsoncompilerOptionses5 更改为 es2015 对我来说没问题,你可以试试