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
System:
OS: macOS 14.0
CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
Memory: 21.04 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
Yarn: 3.6.1 - ~/.nvm/versions/node/v18.17.0/bin/yarn
npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
pnpm: 8.6.7 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 118.0.5993.117
Safari: 17.0
Used Package Manager
pnpm
Validations
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.tsfile 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
System: OS: macOS 14.0 CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz Memory: 21.04 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node Yarn: 3.6.1 - ~/.nvm/versions/node/v18.17.0/bin/yarn npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm pnpm: 8.6.7 - ~/Library/pnpm/pnpm Browsers: Chrome: 118.0.5993.117 Safari: 17.0Used Package Manager
pnpm
Validations