TheFlyer1983
Vue 3 Component Library in Nuxt 3
Hi,
I'm trying to create a Vue 3 component library with Vite and typescript.
I'm wondering if I am creating the plugin correctly because when I try and import the components I get the error
Module '"sample-library"' has no exported member 'UiButton'. Did you mean to use 'import UiButton from "sample-library"' instead?
Below is my index.ts
file that is supposed to export my components:
I then import this into a plugin's file in my Nuxt app like this:
I would like to components to be registered globally and auto imported like normal components.
I must be doing something wrong.
Is anyone able to help with this?5 replies