Nativescript-Vue 7 - 创建新项目后,我在 google chrome devtools 中看不到网络 activity
Nativescript-Vue 7 - After creating a new project i cannot see network activity in the google chrome devtools
我使用这个命令创建了项目vue init nativescript-vue/vue-cli-template <project name>
这是我用来调试的命令ns debug ios/android
这曾经在以前的版本中开箱即用
经过研究,我发现这个 domainDebugger.getNetwork()
returns 未定义(不知道是不是这个原因,如果是的话如何解决)。
它位于此处:node_modules/@nativescript/core/http/http-request/index.ios.js
添加了当前包JSON
"dependencies": {
"vuex": "^3.5.1",
"@vue/devtools": "^5.3.3",
"nativescript-socketio": "^3.3.1",
"nativescript-vue-devtools": "^1.4.0",
"nativescript-toasty": "^3.0.0-alpha.2",
"@nativescript/theme": "^2.3.3",
"nativescript-vue": "^2.8.1",
"@nativescript/core": "^7.0.3"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@nativescript/ios": "7.0.6",
"@nativescript/webpack": "^3.0.4",
"babel-loader": "^8.1.0",
"nativescript-vue-template-compiler": "^2.8.1",
"nativescript-worker-loader": "~0.12.1",
"sass": "^1.26.10",
"vue-loader": "^15.9.3"
}
您的问题可能与此tweet有关。
必须更新依赖项并清理。
npm i @nativescript/ios
npm i @nativescript/core
ns clean
此问题目前正在处理中,并已部分修复
https://github.com/NativeScript/NativeScript/issues/8966
https://github.com/NativeScript/NativeScript/issues/9058
我使用这个命令创建了项目vue init nativescript-vue/vue-cli-template <project name>
这是我用来调试的命令ns debug ios/android
这曾经在以前的版本中开箱即用
经过研究,我发现这个 domainDebugger.getNetwork()
returns 未定义(不知道是不是这个原因,如果是的话如何解决)。
它位于此处:node_modules/@nativescript/core/http/http-request/index.ios.js
添加了当前包JSON
"dependencies": {
"vuex": "^3.5.1",
"@vue/devtools": "^5.3.3",
"nativescript-socketio": "^3.3.1",
"nativescript-vue-devtools": "^1.4.0",
"nativescript-toasty": "^3.0.0-alpha.2",
"@nativescript/theme": "^2.3.3",
"nativescript-vue": "^2.8.1",
"@nativescript/core": "^7.0.3"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@nativescript/ios": "7.0.6",
"@nativescript/webpack": "^3.0.4",
"babel-loader": "^8.1.0",
"nativescript-vue-template-compiler": "^2.8.1",
"nativescript-worker-loader": "~0.12.1",
"sass": "^1.26.10",
"vue-loader": "^15.9.3"
}
您的问题可能与此tweet有关。
必须更新依赖项并清理。
npm i @nativescript/ios
npm i @nativescript/core
ns clean
此问题目前正在处理中,并已部分修复 https://github.com/NativeScript/NativeScript/issues/8966 https://github.com/NativeScript/NativeScript/issues/9058