simplise / use-bootstrap

https://usebootstrap.org/
50 stars 4 forks source link

nuxt-robots error #52

Open KoujiSano opened 1 month ago

KoujiSano commented 1 month ago

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 commented 1 month ago

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

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