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
Vue 3.3 breaks auto import types in vueTemplate
#375
Comments
me too!! |
I would love to see a minimal reproduction if someone could make one. Not sure if it's some regression related to Volar, as we are extending the /cc @johnsoncodehk if you have any clue |
vueTemplate
optionvueTemplate
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@dflock your issue is unrelated to the original post, please create another issue instead. Thanks. I am hiding your comments here. |
|
This issue would soon become another "me too" movement. with the comments everywhere 🥲 Nuxt says report to Volar. Volar says report to unplugin-auto-imports and you say report to Volar. Here is the original issue on nuxt nuxt/nuxt#20827 |
Hi all, can you provide us a minimal reproduction to find some clue and then fix it? |
ReproductionThis error doesn't seem to be reproducible on Stackblitz so I have included a github repo Describe the bugWhen functions are auto-imported from utils/ composables and used in Vue SFC Template, VsCode throws and error. Yes, I use the latest volar. This error appeared after I have not tried reverting Vue versions though. Additional contextExample:
|
@tobychidi Hi, I try your repo in both Vue Language Features (Volar) v1.2.0 and v1.7.6. All works well for me. Also I tried to run pnpm add --save-dev vue-tsc typescript @types/node && pnpm build && ./node_modules/.bin/vue-tsc --noEmit in your repo. And all works well. Is there anything I miss? Is there any body can reproduce it will vue-tsc cli? |
Hello,
I recently upgraded my project to Vue 3.3. I saw on the blog post (https://blog.vuejs.org/posts/vue-3-3) that there have been some changes to the JSX namespace (https://blog.vuejs.org/posts/vue-3-3#jsx-import-source-support).
I'm not getting types for global imports inside
<template>
s. I havevueTemplate: true,
inside the Vite config, but I'm getting errors when using variables fromauto-imports.d.ts
. They work fine inside<script setup>
s.My stack is Vue 3.3.1 + Vite (latest).
Here's an example:
Looking forward to a timely solution.
Thanks!
The text was updated successfully, but these errors were encountered: