Closed yzh990918 closed 2 years ago
Can you give a reproduction repo?
Hi I saw the same issue. here is my repo
easy two step can reproduce.
npm create vite@latest
Ok to proceed? (y) y ✔ Project name: … vite-project ✔ Select a framework: › vue ✔ Select a variant: › vue-ts
cd vite-project/
npm install
npm i vite-plugin-vue-type-imports
src/components/props.ts
export type props={ msg: string }
src/components/HelloWorld.vue
~~~~~~~~~~~~~~~~~
import type {props} from './props'
defineProps<props>()
~~~~~~~~~~~~~~~~~
vite.config.ts
import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import VueTypeImports from 'vite-plugin-vue-type-imports'
export default defineConfig({
plugins: [
Vue(),
VueTypeImports(),
],
})
@wheatjs Do you have any release plan? It may be related to the version of the bundler. (See https://github.com/wheatjs/vite-plugin-vue-type-imports/issues/24#issuecomment-1221217545)
@wheatjs Do you have any release plan? It may be related to the version of the bundler. (See #24 (comment))
Yes, we can do a release tomorrow
@Zolyn New version has been released https://github.com/wheatjs/vite-plugin-vue-type-imports/releases/tag/v0.2.1