I'm migrating my vue-cli vue 2 project to vite.
Part of my application written by using typescript. All works well when I run the code on my computer.
But when my collegue clones the repo and write "yarn dev" she's getting an error: Error: The following dependencies are imported but could not be resolved: Are they installed?
The next string cause this error: import { Dictionary } from 'vue-router/types/router'.
All other imports work well (import GlobalFilterMixin from '@/mixins/Global/GlobalFilter', import { Route, NavigationGuard } from 'vue-router', e.t.c.).
I fixed it by rewriting import { Dictionary } from 'vue-router/types/router' to type Dictionary<T> = { [key: string]: T } , but it seems like a hack.
Any ideas how to fix it?
In the answers noticed, that "vue-router/types/router" is likely a mistake. Maybee I wrong, but there isn't type Dictionary in "vue-router"
And now I realize that the type Dictionary isn't exported from router.d.ts,

But it imported successfully in my code (And now I don't understand why, don't often programming typescript):

It seems I'm doing something wrong


