Android Nativescript+;Vue:sync仅在设备和模拟器上第一次起作用
Project Nativescript+Vue NativeScript CLI版本:5.4.2 package.jsonAndroid Nativescript+;Vue:sync仅在设备和模拟器上第一次起作用,android,ios,nativescript-vue,Android,Ios,Nativescript Vue,Project Nativescript+Vue NativeScript CLI版本:5.4.2 package.json "dependencies": { "axios": "0.19.0", "jwt-decode": "2.2.0", "moment": "^2.24.0", "nativescript-iqkeyboardmanager": "^1.5.1", "nativescript-pulltorefresh": "2.3.0",
"dependencies": {
"axios": "0.19.0",
"jwt-decode": "2.2.0",
"moment": "^2.24.0",
"nativescript-iqkeyboardmanager": "^1.5.1",
"nativescript-pulltorefresh": "2.3.0",
"nativescript-theme-core": "~1.0.6",
"nativescript-ui-listview": "6.4.2",
"nativescript-vue": "~2.2.2",
"nativescript-vue-navigator": "0.0.3",
"tns-core-modules": "~5.4.3",
"vuex": "3.1.1"
},
"devDependencies": {
"@babel/core": "~7.4.5",
"@babel/preset-env": "~7.4.5",
"babel-loader": "~8.0.6",
"nativescript-dev-webpack": "^0.24.1",
"nativescript-vue-template-compiler": "~2.2.2",
"node-sass": "^4.12.0",
"vue-loader": "^15.7.1"
},
当我在Sidekick上构建并运行“tns run”或“tns debug”或使用“在设备上运行”时,设备和模拟器上的同步只在第一次起作用。
从第二次出现空白屏幕或错误时起:
调用js方法onCreateView失败
错误:视图已具有父级。查看:第(23)页父项:
选项卡视图项目(22)
我已经尝试禁用热模块更换,但问题仍然存在。
唯一的解决方案是卸载应用程序并重新运行本地版本
本地和云构建都存在问题。
有什么想法吗?
谢谢事实上,我在NS6上重构了我的应用程序,现在它运行良好 实际上,我在NS6上重构了我的应用程序,现在它运行良好 您是否尝试添加了
--bundle
?是的。。。即使使用--bundle
我也会遇到同样的错误。我认为这与Navigator或TabViewItem有关,因为如果我停留在登录屏幕上,重新加载不会出现任何问题。无论如何,我已经用完整的错误更新了问题。您是否尝试添加--bundle
?是的。。。即使使用--bundle
我也会遇到同样的错误。我认为这与Navigator或TabViewItem有关,因为如果我停留在登录屏幕上,重新加载不会出现任何问题。无论如何,我已经用完全错误更新了问题。