@nuxtjs/robots, defineNuxtConfig option `robots` is not recognized
As the title says. The robots key in the config file throws a TS error after installing the module.
Object literal may only specify known properties, and 'robots' does not exist in type 'InputConfig<NuxtConfig, ConfigLayerMeta>'.ts(2345)
3 Replies
Have you installed the module via npm or your package manager?
also there's a newer module that maybe worth installing instead
Install Nuxt Simple Robots | Nuxt SEO
Get started with nuxt-simple-robots by installing the dependency to your project.
You can try to regenerate your types by removing the
.nuxt
folder in your project root. Can you show us your nuxt.config.ts
?