Skip to content

Using Nuxt UI in components from a npm package, in Vue #4892

@rikzwarthoff

Description

@rikzwarthoff

Package

v3.x

Description

So I've created a nuxt module npm package to share components / composable, between two applications. One is Nuxt, one is plain Vue. Now i'm using Nuxt UI is some of those components. When installing this module in the Nuxt application the components work fine, but in Vue I'm having trouble getting them recognized.

I've added a "components" -> "dist/runtime/components" export to the package and I'm directly importing the .vue files in Vue, Nuxt UI is installed in the application. But I'm getting the following:

Image

I'm also using UModal, UCard elsewhere in the app itself, they do work there.
So what do I need to do to get these files parsed my vite/vue/nuxt ui?

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2-mediumNotable issue or useful enhancementquestionFurther information is requestedv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions