You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I am trying to use the package in a Nuxt project with typescript and I am getting this error when I try to use it
Type 'typeof import("~/node_modules/oh-vue-icons/types/index")' is not assignable to type 'Component<any, any, any, any> | AsyncComponent<any, any, any, any>'.
Type 'typeof import("~/node_modules/oh-vue-icons/types/index")' is not assignable to type 'AsyncComponentFactory<any, any, any, any>'.
Type 'typeof import("~/node_modules/oh-vue-icons/types/index")' provides no match for the signature '(): { component: Promise<ImportedComponent<any, any, any, any>>; loading?: ImportedComponent<DefaultData<never>, DefaultMethods<never>, DefaultComputed, DefaultProps> | undefined; error?: ImportedComponent<...> | undefined; delay?: number | undefined; timeout?: number | undefined; }'.
Usage:
<scriptlang="ts">importVuefrom'vue';importOhVueIconfrom'oh-vue-icons';exportdefaultVue.extend({components: {'v-icon': OhVueIcon,// <<< error is thrown here},});</script>
I've already added the transpilation step in nuxt.config.js
build: {transpile: ['oh-vue-icons']}
Is there anything I'm missing here?
The text was updated successfully, but these errors were encountered:
Hi there, I am trying to use the package in a Nuxt project with typescript and I am getting this error when I try to use it
Usage:
I've already added the transpilation step in nuxt.config.js
Is there anything I'm missing here?
The text was updated successfully, but these errors were encountered: