Open RuBaWa opened 1 year ago
Hi @RuBaWa maybe check the following:
Whether you included your components.d.ts
file inside yourtsconfig.json
:
{
"include": ["src/**/*.d.ts"]
}
Whether you used the right element syntax
<template>
<i-myName-iconName>
</template>
You are rigtht, its working with:
<template>
<i-myName-iconName>
</template>
I was confused, because this custom icons are not updated in components.d.ts dts file, where all other components are listet. In demo project for vite + vue3 they also listet in this file. But after some tests it is working fine without beeing listet in this file.
Perfect. Glad I could help @RuBaWa ;)
I think this issue can be closed then.
Describe the bug
IconsResolver don't find svg icons for global use. Manual import with "import MyIcon from '~icons/myName/my-icon';" is working.
This is my vite.config.ts:
Reproduction
I tried it with "vite + vue3" example from this repo, it only works with default config. If i change customCollections name from "custom" to another name, this items are not listet anymore.
System Info
Used Package Manager
yarn
Validations