NativeScript-Vue安卓项目使用RadListView时遇Webpack错误求助
Solution for RadListView Webpack Error in NativeScript 6.8.0
The error you're seeing (TypeError: _nativescript_core__WEBPACK_IMPORTED_MODULE_0__.Property is not a constructor) is caused by a version compatibility mismatch between NativeScript 6.8.0 and the nativescript-ui-listview@9.0.4 plugin.
Here's the root cause:
- Version 9.x of
nativescript-ui-listviewis built exclusively for NativeScript 7.0 and above, which introduced breaking changes to core APIs like thePropertyclass. - NativeScript 6.8.0 uses an older implementation of
Propertythat doesn't align with the 9.x plugin's code structure, triggering the constructor error you're seeing.
Step-by-Step Fix:
Uninstall the incompatible plugin version
Run this command in your project root:npm uninstall nativescript-ui-listviewInstall a RadListView version compatible with NativeScript 6.8.0
The latest stable release that works with NS 6.x is8.2.1. Install it with:npm install nativescript-ui-listview@8.2.1 --saveClean your project to clear cached conflicts
- For macOS/Linux:
rm -rf node_modules platforms hooks package-lock.json - For Windows:
rmdir /s/q node_modules platforms hooks && del package-lock.json
- For macOS/Linux:
Reinstall dependencies and rebuild your project
npm install tns run android
Additional Notes:
- If you plan to upgrade your project to NativeScript 7+ later, you can safely switch back to
nativescript-ui-listview@9.xonce the core upgrade is complete. - Always verify plugin version compatibility with your NativeScript core version before installing—older NS releases require corresponding older plugin builds to avoid API mismatches.
内容的提问来源于stack exchange,提问作者Mike Smedley
相关产品推荐
相关产品推荐

