我用的是有棱角的本地文字记录。在安装了nativescript-ui-listview插件之后,我得到了这个错误。
工作人员#1上的
错误:错误:对非ES5类调用getInternalNameOfClass():期望RadListViewComponent具有内部类声明
在运行应用程序的时候。
并提出警告:
C:/Users/rashi/FNFtoursapp/node_modules/nativescript-ui-listview/angular/fesm2015/nativescript-ui-listview-angular.js:() => [{ type: ElementRef,装饰符:[{ type: Inject,args: ElementRef,}] },{
:IterableDiffers,装饰符:[{ type: Inject,args: IterableDiffers,}] },{ type: NativeScriptRendererFactory,装饰符:[{ 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"
}发布于 2020-11-27 00:50:56
将compilerOptions of tsconfig.json从es5改为es2015对我来说很好,你可以试试
https://stackoverflow.com/questions/64229564
复制相似问题