nuxt / components

Scan and auto import components for Nuxt.js 2.13+
MIT License
887 stars 48 forks source link

Nuxt 3.0.0 support #255

Closed priverop closed 1 year ago

priverop commented 1 year ago

Right now this package doesn't work on Nuxt 3 as it doesn't auto-import components from modules.

Is there a workaround for it? Should I open an issue on the nuxt framework project?

priverop commented 1 year ago

Got the fix for it.

In nuxt.config.js you need to define:

  components: {
    global: true,
    dirs: [
      "~/components",
      "node_modules/awesome-ui/components",
    ],
  },