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

Combining Nuxt Content and openAPI: true gives rollup errors, breaks build #2839

Open
pmcp opened this issue Nov 8, 2024 · 0 comments
Open
Labels
v2 Relevant for @nuxt/content v2

Comments

@pmcp
Copy link

pmcp commented Nov 8, 2024

Environment

Reproduction

Starting with https://github.com/nuxt-hub/starter and adding nuxt content.

Describe the bug

When I add

  nitro: {
    experimental: {
      // Enable Server API documentation within NuxtHub
      openAPI: true
    }
  },

to nuxt.config, it gives me the error

RollupError: virtual:#nitro-internal-virtual/server-handlers-meta (32:7): Identifier "_vtEFC3Meta" has already been declared

30: import _P2WQbkMeta from "/Users/pmcp/Documents/GitHub/kdm/node_modules/.pnpm/@[email protected][email protected]_magica...
31: import _vtEFC3Meta from "/Users/pmcp/Documents/GitHub/kdm/node_modules/.pnpm/@[email protected][email protected]_magic...
32: import _vtEFC3Meta from "/Users/pmcp/Documents/GitHub/kdm/node_modules/.pnpm/@[email protected][email protected]_magic...
           ^
33: import _vtEFC3Meta from "/Users/pmcp/Documents/GitHub/kdm/node_modules/.pnpm/@[email protected][email protected]_magic...
34: import _qfWoImMeta from "/Users/pmcp/Documents/GitHub/kdm/node_modules/.pnpm/@[email protected][email protected]_magic...

This experimental feature is included in the nuxthub starter, it seems to only break if nuxt content is added.

Combining Nuxt Content and openAPI: true seems to be the issue (for me).

Additional context

No response

Logs

No response

@pmcp pmcp added the v2 Relevant for @nuxt/content v2 label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 Relevant for @nuxt/content v2
Projects
None yet
Development

No branches or pull requests

1 participant