-
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
Property 'nuxtIcon' is missing in type 'AppConfig' when update to 2.11.0 #1045
Comments
a trick during waiting a fix from nuxt-icon
// fix type-checkin error
nuxtIcon: {}, |
Same here. And this did not work for me:
|
did not work for me either "devDependencies": {
"@nuxt/devtools": "1.0.8",
"nuxt": "3.9.3",
"typescript": "^5.3.3",
"vue": "3.4.15",
"vue-router": "4.2.5",
"vue-tsc": "^1.8.27"
},
"dependencies": {
"@formkit/nuxt": "1.5.1",
"@nuxt/ui": "2.12.3",
} |
does this work nuxt/icon#117 (comment)
|
Sorry for the late reply, is this still an issue with the latest |
@sandros94 yes, it's still happening for me on the latest version of "dependencies": {
"@grpc/grpc-js": "^1.10.6",
"@grpc/proto-loader": "^0.7.12",
"@nuxt/ui": "^2.15.1",
"date-fns": "^3.6.0",
"nuxt": "^3.11.2",
"v-calendar": "^3.1.2",
"vue": "^3.4.21",
"vue-router": "^4.3.0",
"zod": "^3.22.4"
},
"devDependencies": {
"@nuxt/eslint-config": "^0.3.0",
"@nuxt/test-utils": "^3.12.0",
"@vue/test-utils": "^2.4.5",
"eslint": "^8.57.0",
"happy-dom": "^14.5.1",
"playwright-core": "^1.43.0",
"typescript": "^5.4.4",
"vitest": "^1.4.0",
"vue-tsc": "^1.8.27"
} Though, as others have reported, I'm able to workaround it with an export default defineAppConfig({
nuxtIcon: {},
}) |
This Helped, here is full code for the file
|
Environment
Version
2.11.0
Reproduction
https://stackblitz.com/edit/nuxt-ui
Description
ERROR(vue-tsc) Conversion of type 'AppConfig' to type '{ nuxtIcon: { size?: string; class?: string; aliases?: Record<string, string>; iconifyApiOptions?: { url?: string; publicApiFallback?: boolean; }; }; }' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Property 'nuxtIcon' is missing in type 'AppConfig' but required in type '{ nuxtIcon: { size?: string; class?: string; aliases?: Record<string, string>; iconifyApiOptions?: { url?: string; publicApiFallback?: boolean; }; }; }'.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: