Nativescript 错误:对非ES5类调用getInternalNameOfClass():预期RadListViewComponent具有内部类声明

Nativescript 错误:对非ES5类调用getInternalNameOfClass():预期RadListViewComponent具有内部类声明,nativescript,nativescript-angular,nativescript-ui-listview,Nativescript,Nativescript Angular,Nativescript Ui Listview,我用的是带有角的nativescript。在安装nativescript ui listview插件之后,我遇到了这个错误 worker#1出错:错误:对非ES5类调用getInternalNameOfClass():预期RadListViewComponent具有内部类声明 在运行应用程序时 警告: 警告:C:/Users/rashi/FNFtoursapp/node_modules/nativescript ui listview/angular/fesm2015/nativescript-

我用的是带有角的nativescript。在安装nativescript ui listview插件之后,我遇到了这个错误

worker#1出错:错误:对非ES5类调用getInternalNameOfClass():预期RadListViewComponent具有内部类声明

在运行应用程序时

警告:

警告:C:/Users/rashi/FNFtoursapp/node_modules/nativescript ui listview/angular/fesm2015/nativescript-ui-listview-angular.js中的构造函数参数decorator无效: () => [ {type:ElementRef,decorators:[{type:Inject,args:[ElementRef,]}]}, {type:IterableDiffers,decorators:[{type:Inject,args:[IterableDiffers,]}]}, {type:nativeScriptRenderFactory,装饰器:[{type:Inject,args:[nativeScriptRenderFactory,]}]} ]

需要帮助

下面是我的包Json文件

{
“nativescript”:{
“id”:“org.nativescript.FNFtoursapp”,
“tns ios”:{
“版本”:“6.5.0”
},
“tns安卓”:{
“版本”:“6.5.3”
}
},
“说明”:“NativeScript应用程序”,
“许可证”:“请参阅中的许可证”,
“存储库”:“,
“脚本”:{
“ngcc”:“ngcc--properties es2015 module main--first only”,
“安装后”:“npm运行ngcc”
},
“依赖项”:{
“@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浏览器”:“~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复选框”:“^1.0.0”,
“nativescript cardview”:“^3.2.0”,
“nativescript插件firebase”:“^10.5.2”,
“nativescript ui列表视图”:“^9.0.2”,
“反映元数据”:“~0.1.12”,
“rxjs”:“^6.5.0”,
“tns核心模块”:“~6.5.0”,
“zone.js”:“~0.10.3”
},
“依赖性”:{
“@angular/compiler cli”:“~9.1.0”,
“@ngtools/webpack”:“~9.1.0”,
“nativescript开发网页包”:“~1.5.0”,
“tns平台声明”:“~6.5.0”,
“类型脚本”:“~3.8.3”
},
“自述文件”:“NativeScript应用程序”
}

tsconfig.json的
编译器选项
es5
更改为
es2015
对我来说很好,你可以试试