0👍
the solution is to replace "const { useRouter }=require("vue-router");"
with "import { useRouter } from ‘vue-router’"
- [Vuejs]-Tailwind class conflicts when used in Markdown with vitepress
- [Vuejs]-Vue router – path #ID scrollBehavior
Source:stackexchange.com