Upgrading & Troubleshooting
Keep your Nuxtify modules up to date and quickly resolve the most common configuration, content schema, and TypeScript issues.
Upgrading Nuxtify Modules
Nuxtify modules are currently in public preview (0.x), so minor releases can occasionally include breaking changes.
Before upgrading, check the release notes on GitHub for the module you install:
To update to the latest compatible versions:
npm update @nuxtify/cms
Or jump directly to the latest release across modules:
npm install @nuxtify/cms@latest
After updating any Nuxtify module, regenerate Nuxt's .nuxt types and verify your build:
npx nuxt prepare
npm run build
Common Pitfalls & Fixes
Collection enabled or routePrefix Overrides Ignored
Symptom: You set content.articles.enabled = false or changed content.articles.routePrefix to '/blog' in app/app.config.ts, but /articles still exists or sitemap.xml still includes the old paths.
Cause: Nuxtify CMS registers Vue Router routes and sitemap.exclude rules during module setup at build time. Defaults work without any config, but overrides to enabled or routePrefix must be read before runtime.
Fix: Move enabled and routePrefix overrides into nuxt.config.ts under nuxtifyCms:
// nuxt.config.ts
export default defineNuxtConfig({
nuxtifyCms: {
content: {
articles: {
routePrefix: '/blog',
},
contributors: {
enabled: false,
},
},
},
})
UI labels such as title, subtitle, description, and toc.title can stay in app/app.config.ts.
Missing or Unvalidated Collections in @nuxtify/cms
Symptom: Content pages return 404, frontmatter fields like draft, publishedAt, or icon are missing from query results, or Nuxt Content logs an unknown collection error.
Cause: @nuxtify/cms provides the Zod schemas (pageSchema, articleSchema, docSchema, etc.) and pages, while Nuxt Content requires your project's root content.config.ts to declare each collection explicitly.
Fix: Define every enabled collection in content.config.ts at your project root and attach the matching schema. See Content Collections for a copy-paste template.
Stale TypeScript Types or Missing Auto-Complete
Symptom: Your IDE flags auto-imported components (PageHero, EmailSubscribeForm), composables (useNuxtifyConfig, usePublicCollection), or app.config.ts nuxtify options as unknown after installing or upgrading a module.
Fix: Regenerate Nuxt's virtual type declarations and restart your editor's TypeScript/Vue language server:
npx nuxt prepare
If you added or changed a collection in content.config.ts, restarting npm run dev (or running npx nuxt prepare) also refreshes Nuxt Content's generated collection types.
Getting Help
Still stuck? Open an issue or start a discussion on the corresponding GitHub repository—include your Nuxt version, @nuxtify/* version, and a minimal reproduction when reporting a bug: