nuxt-component-meta icon indicating copy to clipboard operation
nuxt-component-meta copied to clipboard

nuxt-component-meta in monorepo using turborepo returns an empty meta for local components

Open miker059 opened this issue 5 months ago • 1 comments

Hi friends! Tell me, please, faced with such a problem. I have a Nuxt project in which I am developing an admin panel for a website and I use nuxt-component-meta in it. If the project is deployed separately, then everything works great. But we decided that we needed to use a monorepository to poke components between the admin area and the site, so we chose turborepo for this. But after transferring the project to the monorepository, the meta for local components began to come empty, that is, the component is located, but all its props, slots, events are just empty arrays.

{
  "mode": "all",
  "global": true,
  "prefetch": false,
  "preload": false,
  "filePath": "app/components/blocks/Test.vue",
  "pascalName": "BlocksTest",
  "kebabName": "blocks-test",
  "chunkName": "components/blocks-test",
  "priority": 1,
  "_scanned": true,
  "meta": {
    "type": 1,
    "props": [ ],
    "slots": [ ],
    "events": [ ],
    "exposed": [ ],
    "hash": "g4QL2SCRbG5mEZtQQzV8PITj_Q65rk1Ob2DrTaWVAc4"
  }
}

At the same time, everything works fine for Nuxt/Ui components. Does anyone know how to overcome this and where to look for the problem?

miker059 avatar Aug 06 '25 13:08 miker059

Hey @miker059 Sorry for late response, Do you have a reproduction repository I can use to look for the issue?

farnabaz avatar Nov 07 '25 10:11 farnabaz