-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
nuxt-property-decorator + typescript #2567
Comments
Please provide a repro case. |
i solved the case, it's because i wasn't importing my components since nuxt is doing it by default, so it probably wasn't able to find the definition. but it's sad since it mean that we cannot take advantage of this functionality. is it possible to tell |
I am not familiar with nuxt. |
you're my savior ^^ module.exports = {
projects: [
{
root: './',
globalComponents: [
// Nuxt components folder
'./components/**/*.vue',
],
},
],
}; in |
I think your problem is solved. |
While it may seem that the globalComponents setting solves this issue (it might when you don't nest your components in subdirectories) it doesn't correctly solve the issue here. https://nuxtjs.org/docs/directory-structure/components/#nested-directories I believe this is actually a bug, possibly a very simple one to resolve for anyone familiar with the vetur code base relating to the nuxt external tag loader not being loaded correctly. See my issue for more info #3370 |
Facing the same issue with the next directories and I have not been able to find a solution. Essentially, we have the following folder setup:
We use @nuxt/components for autoloading (per https://nuxtjs.org/docs/directory-structure/components/#nested-directories )and reference the component in our files as . The file that vetur generates when viewing vetur doctor has these lines which does not allow vetur to pick up the UiButton component correctly.
|
I've made a plugin to help jump to the corresponding component file. And nested files are supported. The name of the component is “Nuxt 2 goto". You can go to the vscode store to find it |
Vetur: Restart VLS
Info
Problem
there is no auto-completion / IntelliSense for props and data on custom component using
nuxt-property-decorator
and typescriptReproducible Case
The text was updated successfully, but these errors were encountered: