Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net::ERR_UNKNOWN_URL_SCHEME Vue.js devtools (beta) 7.0.0 beta 3 in Ionic App #504

Open
beliven-davide-lorigliola opened this issue Jul 4, 2024 · 0 comments

Comments

@beliven-davide-lorigliola
Copy link

beliven-davide-lorigliola commented Jul 4, 2024

Hi, the error appears if I try to inspect remotely the Webview of my Ionic-Vue app from chrome://inspect/#devices.

package.json:

"dependencies": {
    "@capacitor/android": "^6.1.0",
    "@capacitor/app": "6.0.0",
    "@capacitor/core": "6.1.0",
    "@capacitor/haptics": "6.0.0",
    "@capacitor/keyboard": "6.0.1",
    "@capacitor/status-bar": "6.0.0",
    "@ionic/vue": "^8.0.0",
    "@ionic/vue-router": "^8.0.0",
    "axios": "^1.7.2",
    "croppie": "^2.6.5",
    "flowbite": "^2.3.0",
    "ionicons": "^7.0.0",
    "pinia": "^2.1.7",
    "sweetalert2": "^11.11.1",
    "swiper": "^11.1.4",
    "toastr": "^2.1.4",
    "vanilla-lazyload": "^19.1.3",
    "vue": "^3.3.0",
    "vue-router": "^4.2.0",
    "vue3-nl2br": "^0.1.5"
  },
  "devDependencies": {
    "@capacitor/cli": "6.1.0",
    "@vitejs/plugin-legacy": "^5.0.0",
    "@vitejs/plugin-vue": "^4.0.0",
    "@vue/eslint-config-typescript": "^12.0.0",
    "@vue/test-utils": "^2.3.0",
    "autoprefixer": "^10.4.19",
    "cypress": "^13.5.0",
    "eslint": "^8.35.0",
    "eslint-plugin-vue": "^9.9.0",
    "jsdom": "^22.1.0",
    "postcss": "^8.4.38",
    "sass": "^1.77.5",
    "tailwindcss": "^3.4.4",
    "terser": "^5.4.0",
    "typescript": "^5.1.6",
    "vite": "~5.2.0",
    "vite-plugin-vue-devtools": "^7.3.5",
    "vitest": "^0.34.6",
    "vue-tsc": "^1.0.24"
  },

vite.config.ts:

/// <reference types="vitest" />

import legacy from "@vitejs/plugin-legacy";
import vue from "@vitejs/plugin-vue";
import path from "path";
import { defineConfig } from "vite";
import vueDevTools from "vite-plugin-vue-devtools";

// https://vitejs.dev/config/

export default defineConfig({
  plugins: [vue(), legacy(), vueDevTools()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
  test: {
    globals: true,
    environment: "jsdom",
  },
  build: {
    sourcemap: true,
  },
});

In the inspect window of Chrome I can see the Vue tab but it keeps showing the Vue logo, and in console I get the error:

/// <reference types="vitest" />

import legacy from "@vitejs/plugin-legacy";
import vue from "@vitejs/plugin-vue";
import path from "path";
import { defineConfig } from "vite";
import vueDevTools from "vite-plugin-vue-devtools";

// https://vitejs.dev/config/

export default defineConfig({
  plugins: [vue(), legacy(), vueDevTools()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
  test: {
    globals: true,
    environment: "jsdom",
  },
  build: {
    sourcemap: true,
  },
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant