-
-
Notifications
You must be signed in to change notification settings - Fork 675
Can't deploy Nuxt Content v3 on Nuxt Hub when enabling NuxtStudio Api and Nitro OpenApi #3134
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
Comments
@sparrow-chik-chrk Do you think you can provide a production repository? This is strange, since the official documentation of the module is deployed on Nuxt Hub, and Nuxt Studio is enabled |
@farnabaz This conflict is specifically between Nuxt Studio and the Nitro experimental openAPI settings. I had previously found a similar issue on GitHub, but it involved conflicts with completely different packages, so I initially didn’t pay attention to it. |
This happens because Nitro does not check for hash uniqueness and Nuxt Component Meta module registers single handler for three apis. https://github.com/nuxtlabs/nuxt-component-meta/blob/0c79b54a289d3d6c7b96af50b7bbff963d0735e0/src/module.ts#L234-L248 I'll update Component Meta |
@sparrow-chik-chrk Just updated the Component meta module, I would appreciate if you could approve the fix before releasing You can try by adding a resolution in package.json
|
Hi @farnabaz, thanks for the update. I tried adding the resolution in package.json as suggested, but I'm using pnpm, and it appears that pnpm doesn't support URL-based dependency specifications like "https://pkg.pr.new/nuxt-component-meta@4f5fb93". Unfortunately, this means the suggested resolution workaround doesn't work with our setup. Please let me know if there is another option to test this that might be compatible with pnpm. |
@farnabaz
|
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Environment
Version
v3
Reproduction
Reproduction Steps:
Create a Nuxt Project:
npx create-nuxt-app *name*
and select the minimal configuration.Install Additional Dependencies:
@nuxthub/core
and@nuxt/content
:Update nuxt.config.js:
Attempt to Deploy via Nuxt Hub:
npm run build
npx nuxt-hub deploy
or following the official deployment instructions).Expected Behavior:
The deployment succeeds without errors.
Actual Behavior:
Enabling the Nuxt Studio API triggers an error during deployment.
Description
When enabling the Nuxt Studio API in a minimal Nuxt project that includes nuxt-hub, nuxt, and @nuxt/content, the build or deployment fails with a Rollup error. The error message indicates that the identifier _C5GLGXMeta is declared more than once, which suggests a naming collision during the module import phase (likely between imports from @nuxt/content and nuxt-component-meta). This issue appears during Nitro’s prerendering process and prevents the project from building successfully.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: