-
Notifications
You must be signed in to change notification settings - Fork 610
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
Creating app.config.ts forces to define nuxtIcon #1043
Comments
This is weird I haven't encountered this myself, also it should have been fixed already in nuxt/icon#113. |
I tried to reproduce with a new project and indeed to have the issue, you also need to run typescript: {
typeCheck: true
} Shouldn't we have const appConfig = useAppConfig() as {
nuxtIcon: {
size?: string
class?: string
aliases?: Record<string, string>
iconifyApiOptions?: {
url?: string
publicApiFallback?: boolean
}
}
} |
I'm running into this issue as well with export default defineAppConfig({
/**
* Nuxt UI
* https://ui.nuxt.com/getting-started/theming
*/
ui: {
primary: 'yellow',
gray: 'stone',
},
/**
* TODO: Remove this when the issue listed below is fixed.
* https://github.com/nuxt/ui/issues/1043
*/
nuxtIcon: {},
})
For good measure I did a fresh install of node_modules but the issue is still occurring. |
Related to nuxt/icon#117 |
Environment
Version
v2.11.0
Reproduction
Create an app.config.ts without nuxtIcon and run build task
export default defineAppConfig({ ui: { primary: 'teal', gray: 'neutral' } })
Description
We should be able to create app.config.ts without nuxtIcon (following is ok)
export default defineAppConfig({ nuxtIcon: {}, ui: { primary: 'teal', gray: 'neutral' } })
Additional context
v2.11.0 brings following dependency
"nuxt-icon": "^0.6.6",
Logs
No response
The text was updated successfully, but these errors were encountered: