content icon indicating copy to clipboard operation
content copied to clipboard

TypeScript error : contentCollection & contentFilters inside llms config

Open BenjaminOddou opened this issue 5 months ago • 3 comments

Hello,

in nuxt.config.ts I wrote the following as documented in the docs

export default defineNuxtConfig({

  modules: [
    '@nuxt/content',
    'nuxt-llms',
  ],

  llms: {
    domain: 'https://example.com',
    title: 'title',
    sections: [
      {
        title: 'Documentation',
        description: 'Technical documentation and guides',
-       contentCollection: 'docs',
      },
    ],
  },
})

this outputs :

Object literal may only specify known properties, and 'contentCollection' does not exist in type 'LLMsSection'. ts(2353)
(property) contentCollection: string

How can I get rid of this error ? the same error appears for contentFilters option.

Many thanks in advance for your help.

BenjaminOddou avatar Aug 04 '25 20:08 BenjaminOddou

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Oct 03 '25 21:10 github-actions[bot]

🙌

BenjaminOddou avatar Oct 04 '25 12:10 BenjaminOddou

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Dec 03 '25 12:12 github-actions[bot]