Skip to content

ogygia error

plugin_client_hooks_unread

plugin `‹plugin›`: the build cannot read the `hooks` its client realm `‹location›` subscribes to — write them as an object literal in `export default defineClient({ hooks: { … } })`.

The build reads which runtime hooks a plugin's browser half subscribes to from its file, so a hook nobody uses folds out of the runtime. That needs the default export to be defineClient({ … }) (any part of it may sit in a module-level const), with hooks an object literal of plain keys: no spread, no computed key.

Every error and warning