Skip to content

ogygia warning

content_loader_in_component

‹file› calls import.meta.og.loader.* inside a component. Loaders build a content corpus and are server-only — move the collection to a `.server.ts` module and cross the wire with remotes. (In a component it never rewrites and fails at runtime.)

An import.meta.og.loader macro is in a component. Loaders are rewritten only in script modules, so in a component the call stays as it is and fails when it runs.

Define the collection in a .server.ts module, and read it from components through its remote functions.

Every error and warning