---
title: "NUXT_E1006"
description: "onPrehydrate not processed by build pipeline."
canonical_url: "https://nuxt.com/docs/4.x/errors/e1006"
---
# E1006

`onPrehydrate()` ran without being transformed by the Nuxt build pipeline. It needs compile-time processing and only works on the server, so this happens when it is called from a dependency that Nuxt does not transpile.

## Resolution

Add the offending library to `build.transpile` in `nuxt.config.ts` so the build pipeline can process its `onPrehydrate()` call.

<read-more to="https://nuxt.com/docs/4.x/api/composables/on-prehydrate">



</read-more>


## Sitemap

See the full [sitemap](https://nuxt.com/sitemap.md) for all pages.
