Skip to content

help: Typecheck fails after updating to v5.3.0 at NitroRouteConfig #221

Closed

Description

@dredav

📚 What are you trying to do?

First of all: Thanks for creating and maintaining this Nuxt module!

After updating some of the dependencies in our Nuxt project (we're using Nuxt v3), we encountered some type-checking errors when running nuxt typecheck. We traced the issue to the @nuxtjs/robots dependency, the errors started appearing after upgrading from version @5.2.11 to @5.3.0.

nuxt.config.ts:185:9 - error TS2353: Object literal may only specify known properties, and 'ssr' does not exist in type 'NitroRouteConfig'.

185         ssr: false,
            ~~~

We defined the SSR pages as documented in the Nuxt documentation here:

  nitro: {
    routeRules: {
      '/books/**': { ssr: true },
    },
  },

🔍 What have you tried?

No response

ℹ️ Additional context

Downgrading the package to @5.2.11 works for now, but I'm quite sure this type change wasn't intended in @5.3.0.

Activity

  1. harlan-zw commented on Jul 31, 2025

    @harlan-zw
    Contributor

    related pr which likely broke it #212

    will try fix properly soon

  2. lud-hu commented on Jan 9, 2026

    @lud-hu

    Are there any updates on this?
    Seems like the @nuxtjs/[email protected] is not working in combination with the latest [email protected] anymore. :(

    Object literal may only specify known properties, and 'ssr' does not exist in type
    Object literal may only specify known properties, and 'robots' does not exist in type
    
  3. harlan-zw commented on Jan 10, 2026

    @harlan-zw
    Contributor

    Thanks for the bump on this, have pushed up a change that hopefully fixes it in v5.7.8.

  4. added a commit that references this issue on Jan 26, 2026
    dd8532c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions