Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Module Support in nuxt-component-meta CLI #74

Open
romhml opened this issue Oct 13, 2024 · 1 comment
Open

Enable Module Support in nuxt-component-meta CLI #74

romhml opened this issue Oct 13, 2024 · 1 comment

Comments

@romhml
Copy link
Contributor

romhml commented Oct 13, 2024

Currently, the nuxt-component-meta CLI does not resolve components correctly for modules.

Here's a reproduction: https://stackblitz.com/edit/stackblitz-starters-kjvwap

Running pnpm nuxt-component-meta . does not find any components in the module. Although pnpm nuxt-component-meta src/runtime will find components, it will not resolve any types from #build since the build directory will not be resolved correctly.

The expected behaviour would be to generate component meta for a Nuxt Module when running pnpm nuxt-component-meta ..

@romhml
Copy link
Contributor Author

romhml commented Oct 13, 2024

I found a workaround by running this command on the playground app: pnpm nuxt-component-meta playground --outputDir ../.component-meta/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant