Skip to content

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

@miker059

Description

@miker059

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions