-
Notifications
You must be signed in to change notification settings - Fork 97
Vue 2 support ? #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@IndexXuan Not so familiar with Vue, could you tell me is there any |
maybe fork-ts-checker-webpack plugin |
Thanks for the pointing out. I'll take a look. |
I'm trying to implement this based on Vetur language server. |
thanks a lot. |
It seems that vetur's vti not support vue slot type check and will be deprecated and replaced by volar(vue-tsc), maybe fork-ts-type-checker is better for Vue2.x ? |
Thanks @IndexXuan. I'm not going to implement the type checking like fork-ts-typecheck by myself (for now), because:
So I think Vue2 is supported so far. All we need is waiting for the watch mode of vue-tsc releases.
What do you think. 😀 |
I think you are right. and volar for Vue2.x I have a try, not very well(great for Vue3.x). |
Hello. vue-tsc works good for Vue 2 |
@Djaler I dont think so. at least my Vue2.6 + composition-api project not good. do you have demo Vue2.x project so I can test and try. bro. |
I have no demo, but I use vue 2.6 with composition api on my work project and vue-tsc typechecking works for me. What doesn't work for you? |
I will check it later. I now use vetur in IDE and vti in CI. vue-tsc give some strange errors before. thanks for you reminder. |
Vetur / VLS have been supported. Check the new README and have a try (renamed the package 😅). |
you are my hero. will try it. |
Back from vacation. will test it NOW and give feedback ASAP. |
It's perfect. Thank you very much. |
errors overlay only show once, is it by design ? while the error message show up in browser Console every time. |
@IndexXuan What does
mean, the overlay should try to show up if there's an error after watched file changed 🤔 |
我个人还好,据同事们体验,点击遮罩外侧或者刷新,错误就没了,还是有点突然或者会忘记处理,能 cache 住么 ... |
@IndexXuan I also encountered this scenario while developing this plugin. 😅 I guess this might be a Vite related problem, the HMR sever (plugin checker server) didn't resend the error after refresh. I'm not sure whether we can detect a browser refresh action by Vite plugin system. I'll check it later. |
I am wrong, too much v-slot types error in real-world project. I raise issue on vetur. |
@Djaler How can you use vue-tsc/volar with Vue 2. for me, there are too much errors. just the repro demo here. if you have v-model and props: { value: {type: String, required: true } }, you will got error when you use. Also, vue-tsc not support watch mode right now, use vite-plugin-checker vue-tsc is the same as |
I checked your example. Looks like volar have problems with For the second question: yeah, by now vite-plugin-checker will not work with vue-tsc in dev mode |
@Djaler thanks a lot. I created issue to valor, the author said I should use vetur/vls/vti. So I think until now, Vue 2 project should use vetur and push vetur support slots and global component like valor, and finally migrate to Vue 3. |
I tried to use |
@Djaler me too. I am even wrap VTI and ignore some strange errors.(sth like interface name not found?) |
Great Works.
It seems use vue-tsc or tsc, does these work for vite + vue2 ?
The text was updated successfully, but these errors were encountered: