I'm using vue3 for my project, th first project I'v built worked correctly with component and router, but now, when I wanna call my Header and Router Component in my Home page it opens another file for the tags. but still the import ones have a valid destinations.
something like this opens when I ctrl+click the tags in template
but the link in script I imported works fine with component destinations. also I imported routes like this in index.js:
import { createRouter, createWebHistory } from 'vue-router'
import Home from '../pages/home/Home'
import Dashboard from "../pages/dashboard/Dashboard";
import addressProfile from "../pages/dashboard/addressProfile";
import editAddress from "../pages/dashboard/editAddress";
import dashAmar from "../pages/dashboard/dashAmar";
import dashBuy from "../pages/dashboard/dashBuy";
import dashCart from "../pages/dashboard/dashCart";
import dashSabt from "../pages/dashboard/dashSabt";
import dashSupport from "../pages/dashboard/dashSupport";
import Login from "../pages/login/Login";
import LoginVerify from "../pages/login/loginVerify";
import Blogs from "../pages/blogs/Blogs";
import singleBlog from "../pages/blogs/singleBlog";
import products from "../pages/products/products";
import productsFilter from "../pages/products/productsFilter";
import Error from "../pages/404/Error";
const routes = [
{path: '/', name: 'Home', component: Home},
{path: '/dashboard', name: 'Dashboard', component: Dashboard},
{path: '/dashboard/:id', name: 'addressProfile', component: addressProfile},
{path: '/dashboard/:id', name: 'editAddress', component: editAddress},
{path: '/dashboard/:id', name: 'dashAmar', component: dashAmar},
{path: '/dashboard/:id', name: 'dashBuy', component: dashBuy},
{path: '/dashboard/:id', name: 'dashCart', component: dashCart},
{path: '/dashboard/:id', name: 'dashSabt', component: dashSabt},
{path: '/dashboard/:id', name: 'dashSupport', component: dashSupport},
{path: '/login', name: 'Login', component: Login},
{path: '/login/:id', name: 'LoginVerify', component: LoginVerify},
{path: '/blogs', name: 'Blogs', component: Blogs},
{path: '/blogs/:id', name: 'singleBlog', component: singleBlog},
{path: '/products', name: 'products', component: products},
{path: '/products/:id', name: 'productsFilter', component: productsFilter},
{path: '/error', name: 'Error', component: Error},
]
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes
})
export default router