@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
Muhammad Mahmoud
Have you installed the module via npm or your package manager? also there's a newer module that maybe worth installing instead
Muhammad Mahmoud
Install Nuxt Simple Robots | Nuxt SEO
Get started with nuxt-simple-robots by installing the dependency to your project.
Fabian B.
Fabian B.2y ago
You can try to regenerate your types by removing the .nuxt folder in your project root. Can you show us your nuxt.config.ts?
Want results from more Discord servers?
Add your server