[Vuejs]-Vite: Rollup failed to resolve import from external directory

0👍

Solved it by updating imports in test.vue from:

import { useRoute } from "vue-router";

to:

import { useRoute } from "@node_modules/vue-router";

Leave a comment