Auto import of customized component name
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 96
- Avg merge
- 8h 12m
- Merged PRs (30d)
- 2
Description
I have customized component name in nuxt.config.ts as mentioned here:
https://nuxt.com/modules/icon
icon: {
componentName: 'NuxtIcon'
},
However use of component doesn't seem to register auto import of the component:
<NuxtIcon name="lucide:newspaper" />
"@iconify-json/lucide": "^1.2.71",
"@nuxt/icon": "^2.1.0",
"nuxt": "^3.12.1",
"vue": "^3.3.8",
I already have another custom component Icon used for something else.
Anything else I neeed to configure or can I explicit import the component?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the componentName setting in nuxt.config.ts and reproduce the NuxtIcon usage shown in the issue with the listed package versions. Trace how the customized component name is handled for auto-imports, then verify that is registered or that the supported explicit-import configuration is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxtjs, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100