-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
components.d.ts path error if the name startswith prefix defined in collections #326
Comments
Start a new pull request in StackBlitz Codeflow. |
add prefix |
The option of |
For example, if you add Vuetify and you use VXXX in your component names, it is not a Vuetify bug when using Vuetify resolver, change your component names (in this example the components have a fixed name, here, we expose Take a look at any ui resolver in unplugin-vue-components |
@userquin the Actually the options of The another solution is add |
What do you mean? you only need to remember to not including components starting with If that's a problem, you can use UnoCSS Icons Preset, you don't need any vue component, just use css classes (you also have UnoCSS integration for Nuxt ). |
Describe the bug
When use ViteComponents and IconsResolver, and if the component name include the string that is defined in colloections(default is icon-sets.json), and the
components.d.ts
file will get error path.eg:
LayoutHeader => LayoutHeader: typeof import('~icons/la/yout-header')['default']
Circle: typeof import('~icons/ci/rcle')['default']
Because the la and ci are all both included by icon-sets prefix
The mini reproduction is a nuxt3 example.
Reproduction
https://stackblitz.com/edit/nuxt-starter-mrqmcy?file=components.d.ts
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: