in my vitepress project i am trying to use a component that uses an exported function and a type. the imports i tried are the following:
import { test } from '@/test.ts'; // function import through alias not working
// import { test } from './test.ts'; // function, working
import { A } from '@/testType.ts'; // working
// import { A } from './testType.ts'; // working
[plugin:vite:import-analysis] Failed to resolve import "@/test.ts" from "src/components/HelloWorld.vue". Does the file exist?
Describe the bug
in my vitepress project i am trying to use a component that uses an exported function and a type. the imports i tried are the following:
[plugin:vite:import-analysis] Failed to resolve import "@/test.ts" from "src/components/HelloWorld.vue". Does the file exist?
Reproduction
https://stackblitz.com/edit/vitejs-vite-xaqvvy?file=src%2Fcomponents%2FHelloWorld.vue
Expected behavior
All the imports i listed, should work
System Info
Additional context
No response
Validations