2023-07-05 15:11:16 +02:00
---
title: '`next-head-count` is missing'
---
2019-08-12 04:48:05 +02:00
2023-07-05 15:11:16 +02:00
## Why This Error Occurred
2019-08-12 04:48:05 +02:00
You have a custom `pages/_document.js` that doesn't have the components required for Next.js to render correctly.
2023-07-05 15:11:16 +02:00
## Possible Ways to Fix It
2019-08-12 04:48:05 +02:00
2023-07-05 15:11:16 +02:00
Ensure that your `_document.js` is importing and rendering all of the [required components](/docs/pages/building-your-application/routing/custom-document).
2019-08-12 04:48:05 +02:00
In this case you are most likely not rendering the `<Head>` component imported from `next/document`.