我正在使用Nativescript-Vue https://nativescript-vue.org/
编写跨平台的移动应用程序我在ios键盘上遇到了一些问题(键盘输入重叠),并且为了解决该问题,我尝试使用iOS键盘https://github.com/tjvantoll/nativescript-IQKeyboardManager的库
我在main.js中注册了Vue组件
Vue.registerElement("PreviousNextView", () => require("@nativescript/iqkeyboardmanager").PreviousNextView);
运行后应用程序因此错误而失败
2020-10-17 23:04:12.181181+0300 mobile[18756:477923] * Fatal JavaScript exception - application has been terminated. *
2020-10-17 23:04:12.181273+0300 mobile[18756:477923] NativeScript encountered a fatal error: Uncaught ReferenceError: IQPreviousNextView is not defined
at
createNativeView(file:///app/vendor.js:2:1896867)
at _setupUI(file:///app/vendor.js:2:117557)
at (file:///app/vendor.js:2:117816)
at eachChildView(file:///app/vendor.js:2:468834)
at eachChildView(file:///app/vendor.js:2:707885)
at eachChild(file:///app/vendor.js:2:219722)
at _setupUI(file:///app/vendor.js:2:117800)
at _addViewCore(file:///app/vendor.js:2:116677)
at _addView(file:///app/vendor.js:2:116406)
at UIViewControllerImpl.viewWillAppear(file:///app/vendor.js:2:710709)
at UINavigationControllerImpl.pushViewControllerAnimated(file:///app/vendor.js:2:244230)
at _navigateCore(file:///app/vendor.js:2:236714)
at performNavigation(file:///app/vendor.js:2:227048)
at _processNextNavigationEntry(file:///app/vendor.js:2:226905)
at onLoaded(file:///app/vendor.js:2:223991)
at (file:///app/vendor.js:2:114191)
at callFunctionWithSuper(file:///app/vendor.js:2:114030)
at callLoaded(file:///app/vendor.js:2:114138)
at UINavigationControllerImpl.viewWillAppear(file:///app/vendor.js:2:242814)
(lldb)