NUXT_E1006
onPrehydrate not processed by build pipeline.
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.