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

nuxt-robots error #52

Open
KoujiSano opened this issue Oct 25, 2024 · 1 comment
Open

nuxt-robots error #52

KoujiSano opened this issue Oct 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@KoujiSano
Copy link
Contributor

KoujiSano commented Oct 25, 2024

During the build, the following error may occur:

ERROR [nitro] [unhandledRejection] Cannot destructure property 'usingNuxtContent' of 'useRuntimeConfig(...).nuxt-robots' as it is undefined.

at (node_modules@nuxtjs\robots\dist\runtime\nitro\plugins\initContext.js:7:11)
at createNitroApp (node_modules\nitropack\dist\runtime\app.mjs:143:7)
at (node_modules\nitropack\dist\runtime\app.mjs:151:25)
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

@KoujiSano KoujiSano converted this from a draft issue Oct 25, 2024
@KoujiSano KoujiSano added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Oct 25, 2024
@KoujiSano
Copy link
Contributor Author

A temporary workaround is to disable robots in the nuxt config.

export default defineNuxtConfig({
usebootstrap: {
robots: false,
},
},
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant