Back to Nuxt

NUXT_E1006

docs/errors/e1006.md

4.5.2430 B
Original Source

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="/docs/api/composables/on-prehydrate"} ::