nativescript-vue / nativescript-vue-devtools

A NativeScript-Vue plugin for connecting to the standalone vue-devtools
https://nativescript-vue.org/en/docs/getting-started/vue-devtools/
MIT License
28 stars 7 forks source link

crash IO module not found found #5

Closed flozero closed 4 years ago

flozero commented 6 years ago

Hello and thank you for your work !!

i tried a fresh install of vue and nativescript. I tried to install via documentation nativescript-vue-devtools

and i have this

System.err:     Frame: function:'', file:'file:///data/data/org.nativescript.klit/files/app/starter.js', line: 2, column: 1
System.err:     Frame: function:'require', file:'', line: 1, column: 266
System.err: 
System.err: 
System.err: ReferenceError: io is not defined
System.err: File: "<unknown>, line: 1, column: 265
System.err: 
System.err: StackTrace: 
System.err:     Frame: function:'../node_modules/nativescript-socket.io/socketio.js', file:'file:///data/data/org.nativescript.klit/files/app/vendor.js', line: 23553, column: 16
System.err:     Frame: function:'__webpack_require__', file:'file:///data/data/org.nativescript.klit/files/app/bundle.js', line: 752, column: 30
System.err:     Frame: function:'fn', file:'file:///data/data/org.nativescript.klit/files/app/bundle.js', line: 122, column: 20
System.err:     Frame: function:'io', file:'file:///data/data/org.nativescript.klit/files/app/vendor.js', line: 23865, column: 28
System.err:     Frame: function:'./src/backend.js', file:'file:///data/data/org.nativescript.klit/files/app/vendor.js', line: 19983, column: 18
System.err:     Frame: function:'__webpack_require__', file:'file:///data/data/org.nativescript.klit/files/app/vendor.js', line: 59, column: 23

platform: linux command: npm install --save @vue/devtools@beta nativescript-toast nativescript-socket.io nativescript-vue-devtools and npm install -g @vue/devtools@beta

bot not working

"dependencies": {
    "@vue/devtools": "^5.0.0-beta.3",
    "io": "^1.0.0",
    "nativescript-socket.io": "^0.9.0",
    "nativescript-theme-core": "^1.0.4",
    "nativescript-toast": "^1.4.6",
    "nativescript-vue": "^2.0.0",
    "nativescript-vue-devtools": "^1.1.0",
    "socket.io": "^2.1.1",
    "tns-core-modules": "^4.2.1"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
    "babel-loader": "^8.0.2",
    "clean-webpack-plugin": "^0.1.19",
    "copy-webpack-plugin": "^4.5.2",
    "css-loader": "^1.0.0",
    "lazy": "1.0.11",
    "nativescript-dev-webpack": "0.17.0-2018-09-27-191217-06",
    "nativescript-vue-template-compiler": "^2.0.0",
    "nativescript-worker-loader": "~0.9.1",
    "node-sass": "^4.9.3",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~3.0.0",
    "sass-loader": "^7.1.0",
    "uglifyjs-webpack-plugin": "~2.0.1",
    "vue-loader": "^15.4.2",
    "webpack": "^4.19.1",
    "webpack-bundle-analyzer": "~3.0.2",
    "webpack-cli": "^3.1.0",
    "webpack-sources": "~1.3.0"
  },

i run vue-devtools and after tnr run android --hmr

Thank you for your helps :)

lafriks commented 6 years ago

Try removing android target and add it back