---
title: "Page has no `metadata` / `generateMetadata` and inherits only the root title (lint/missing-metadata)"
description: "lint/missing-metadata: Without page-level metadata every route shares the root layout's title and description: duplicate titles in search results, weak link…"
canonical: https://void-design.vercel.app/rules/lint/missing-metadata
lastModified: 2026-09-16
---

# Page has no `metadata` / `generateMetadata` and inherits only the root title

`lint/missing-metadata` · severity **warn** · category Lint · detected by `void lint` and `void audit`

## Why it matters

Without page-level metadata every route shares the root layout's title and description: duplicate titles in search results, weak link previews, and AI answers can't tell pages apart.

## How to fix it

Export `metadata` (static) or `generateMetadata` (dynamic) with a unique `title`, `description` and `alternates.canonical` from the page, or from a layout that owns the segment.

## Example

```ts
export const metadata: Metadata = {
  title: 'Pricing',
  description: 'Plans for teams of every size.',
  alternates: { canonical: '/pricing' },
}
```

## References

- https://nextjs.org/docs/app/api-reference/functions/generate-metadata

## More lint rules

`void lint` reports 67 rules in this category. Static source checks with no browser: Tailwind v4 silent failures, Next.js 16 API traps, React render-body bugs, accessibility markup, SEO files and motion hygiene.

- `vh-hero` Hero sized with `100vh` / `h-screen` — [lint/vh-hero](https://void-design.vercel.app/rules/lint/vh-hero)
- `will-change-static` `will-change` applied statically to many elements — [lint/will-change-static](https://void-design.vercel.app/rules/lint/will-change-static)
- `z-index-soup` Many distinct z-index values — [lint/z-index-soup](https://void-design.vercel.app/rules/lint/z-index-soup)
- `hardcoded-colors` Hard-coded colors in components instead of tokens — [lint/hardcoded-colors](https://void-design.vercel.app/rules/lint/hardcoded-colors)
- `missing-metadata-base` Root layout metadata has no `metadataBase` — [lint/missing-metadata-base](https://void-design.vercel.app/rules/lint/missing-metadata-base)
- `canonical-in-root-layout` Canonical URL set in the root layout — [lint/canonical-in-root-layout](https://void-design.vercel.app/rules/lint/canonical-in-root-layout)
- `og-merge-drops-parent` Page `openGraph` replaces the layout's (shallow merge drops images/siteName) — [lint/og-merge-drops-parent](https://void-design.vercel.app/rules/lint/og-merge-drops-parent)
- `not-found-in-suspense` `notFound()`/`redirect()` inside a component rendered under `<Suspense>` — [lint/not-found-in-suspense](https://void-design.vercel.app/rules/lint/not-found-in-suspense)

Detected by `void lint` and `void audit`. Explain it in a terminal: `void rules lint/missing-metadata`
