Typescript 引入 router 出現類型錯誤

很奇怪的問題

Argument of type ‘Router’ is not assignable to parameter of type ‘Plugin_2’.
Type ‘Router’ is not assignable to type ‘{ install: PluginInstallFunction; }’.
Types of property ‘install’ are incompatible.
Type ‘(app: App) => void’ is not assignable to type ‘PluginInstallFunction’.
Types of parameters ‘app’ and ‘app’ are incompatible.
Type ‘App’ has no properties in common with type ‘App’.ts(2345)

import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import router from "@/router";
import App from "@/App.vue";

const app = createApp(App);

app.use(ElementPlus);
app.use(router);
app.mount("#app");
import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "Home",
    component: () => import("@/views/index.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;