NuxtN
Nuxt2d ago
dan

Nuxt UI Imports within Nuxt Module

Hey everyone! I'm trying to create a Nuxt Module to share some functionality between multiple websites, but I'm having issues with Nuxt UI imports. Components are autoimported fine, but composables and types aren't, so when I try to add a manual import such as import { defineShortcuts } from "@nuxt/ui/composables" or import { type SelectMenuItem } from "@nuxt/ui" I get an error saying imports directly from module entrypoints isn't allowed!

What's the proper approach to access these types and composables within a module?
Was this page helpful?