Replies: 1 comment 1 reply
-
I'm struggling with this, too. I'm currently manually adding the list of components I use, but that doesn't seem right to me. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
the rule
no-undef-components
is really helpful in spotting some mistakes (e.g. typos, eagerly renaming stuff), but as its description states, it can’t work with globally defined components out of the box; and so auto-imports are also hidden.In Nuxt, there is
.nuxt/components.d.ts
which lists all components, and defines a constantcomponentNames
, which I thought could be used as allow list. However, I could not import such a constant or find an appropriate function in Nuxt Kit to do something similar.Is there a possibility to configure
no-undef-components
such that it works with auto-imported components too?Beta Was this translation helpful? Give feedback.
All reactions