@drehimself Thanks for the reply.
After tried your solution , the warning disappeared , and vue-devtool can detect vue on the page.
But , vue-router is not working now. The page is blank , no component is imported.
I did exactly like before , normal routes.js file , double checked spell, no warning info, no nothing.
I really doubt is vite should use a vue-router plugin in the vite.config.js file?
--update: I checked the vue-devtool again , the route is working , i can see the route object with path , name, etc. But Home.vue is not mounted to #app.
Here is my routes.js file
import { createRouter, createWebHistory } from 'vue-router'
const routes = [
{
path: '/',
component: () => import('../views/Home.vue'),
name: 'Home'
}
]
const router = createRouter({
routes,
history: createWebHistory()
})
export default router
Home.vue file
<template>
<div>
This is Home page
</div>
</template>
<script setup>
</script>
<style scoped>
</style>
If you can help me through this issue
Thanks!