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:
<script lang="ts">
import Vue from 'vue';
import OhVueIcon from 'oh-vue-icons';
export default Vue.extend({
components: {
'v-icon': OhVueIcon, // <<< error is thrown here
},
});
</script>
I've already added the transpilation step in nuxt.config.js
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?