Closed hi-reeve closed 2 years ago
😬 Sorry about that. Could you provide a minimal reproduction? I haven't been able to reproduce this myself
hey! sorry for the late reply, been busy with stuff here is my branches repo.
https://github.com/zynth17/vitailse/tree/bug-vite-plugin-vue-type-import
Are you getting that error in your repo? I pulled it and ran it with the <HelloWorld />
component and didn't run into any errors? Can I ask what platform you are on?
Are you getting that error in your repo? I pulled it and ran it with the
<HelloWorld />
component and didn't run into any errors? Can I ask what platform you are on?
yes in that repo im getting the error as well basically it just doesn't work in my machine. i'm currently on windows 11.
hello, any update on this?
Sorry for the delay, I've been pretty busy recently. I'll try to get a fix out this weekend!
thankyou so much!
Just tried and I'm getting this error too
still got the same error even after upgrading to v0.0.3. can you re open this?
Can you provide a reproduction for that? It works in the original reproduction you provided
Can you provide a reproduction for that? It works in the original reproduction you provided
weirdly it does work on my reproduction i provided. here's the reproduction on stackblitz https://stackblitz.com/edit/vitejs-vite-c5b9xa?file=src/components/HelloWorld.vue
Take a look at this https://stackblitz.com/edit/vitejs-vite-xz3znc?file=src%2Fcomponents%2FHelloWorld.vue
I forked your stackblitz and installed the plugin in the vite.config.ts file and it works. Maybe you forgot to do that?
Take a look at this https://stackblitz.com/edit/vitejs-vite-xz3znc?file=src%2Fcomponents%2FHelloWorld.vue
I forked your stackblitz and installed the plugin in the vite.config.ts file and it works. Maybe you forgot to do that?
oh sorry i forgot to do it on the reproduction. and no i did not forget it on my project. i will try it once again and will tell you afterwards. thankyou.
@zynth17 I just did a big update to the plugin, maybe you could update to the latest version and see if it works for you now
@zynth17 I just did a big update to the plugin, maybe you could update to the latest version and see if it works for you now
the new version works! thankyou so much!
https://stackblitz.com/edit/vitejs-vite-xz3znc?file=src%2Fcomponents%2FHelloWorld.vue
@zynth17 i try to run your demo with '0.1.2', but it still error. i only modify some lib version.
while when i changed the versiono '0.0.3' , the demo run work fun!
@wheatjs can you help me?
It looks like it is a problem with adding an extension to the import. Replace import { Props } from '../types/HelloWorld.ts'
with import { Props } from '../types/HelloWorld'
.
I'll see if I can get a fix out for this tomorrow, thanks!
@cizkey solution above in case you didn't get the notification since this issue is closed 🤔
@cizkey solution above in case you didn't get the notification since this issue is closed 🤔
thanks , i knew it.
@cizkey Should be fixed in version 0.1.3
after the first fix on #1 it does work on the vite config. but when i try to import a props type from different file i still got an error
Component
Pagination.ts