When using nuxt 3.16 + nuxt/icon, creating a component named "TimeIcon" throws error 500
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 96
- Avg merge
- 8h 12m
- Merged PRs (30d)
- 2
Description
Ok, this is a weird one,
If we name a component TimeIcon (TimeIcon.vue), we get an error when trying to use it.
It doesn't seem to happen on nuxt 3.15.4 or without nuxt/icon installed.
Please see repro:
https://stackblitz.com/edit/github-hxgvxtk8?file=app%2Fpages%2Findex.vue
Cheers 👍
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 linked StackBlitz reproduction and compare Nuxt 3.16 with 3.15.4, both with and without nuxt/icon installed. Trace why using a component named TimeIcon produces the 500 error; done means the component renders successfully in the affected Nuxt 3.16 setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxt, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100