Skip to content

Reference

Errors and warnings

In development each message prints in full, followed by a link to its page. A production build prints only [ogygia] and that link: the wording stays out of your bundle, and the page shows the message as it was printed.

barrels_component_skipped

warning

barrels() rewrites imports from an index file (a barrel) to the files that define them, so an island ships only what it uses. It could not parse this component, so its imports stay as written and its island ships each barrel whole.

barrels_report

warning

barrels() rewrote imports from index files (barrels) to the files that define each name, so an island ships only what it uses. The report counts the rewrites and lists the barrels that were bypassed the most, with how many files imported through each.

barrels_report_none

warning

barrels() looked for imports through index files (barrels) to rewrite to the files that define each name, and found none. Nothing to do.

barrels_rewrite

warning

With barrels({ debug: true }), each rewritten import is printed: the names, the index file (barrel) they were imported through, and the files that define them, which the import now points at.

boundary_refused

error

A value marked with import.meta.og.$ cannot cross into an island: a DOM node, a bare function, a class with no wire codec, a secret. It fails where it is marked, so the file and line point at it. Pass plain data, or give the class a codec.

browser_only_on_server

error

A region snippet does some of its work in the browser alone: it loads its island's entry, and takes the server's html range marks out before it hydrates. The server renders the snippet's HTML and does neither. Something ran that browser work during a server render; it is an ogygia bug: please report it with the page that shows it.

build_key_prerender

warning

A prerendered page keeps the addresses of its holes in static HTML. Signed with a random per-build key, they stop verifying after the next deploy. Set a stable OGYGIA_SECRET in the server environment, or pass one to handle({ secret }).

build_leg_unclear

error

Each bundler environment (ssr, client) builds its own output, and ogygia keeps what each one emits apart. A call it cannot place in one environment would put one environment's files in the other's output. An ogygia bug: please report it with the file that shows it.

call_arg_in_expression

error

The build reads this call's first argument from the source. Here the string is joined with something else ('./' + dir, a .concat() call), which only has its value when the app runs. Write the whole string out.

call_arg_interpolated

error

The build reads this call's first argument from the source. A template literal with a value inside it only has its text when the app runs. Write one plain string.

call_arg_not_literal

error

The build reads this call's first argument from the source, so it has to be a plain string, written out. got is what was written instead (a variable, a call). Put the string itself there.

chunk_reload_needed

error

A file the runtime loads when it needs it (an island's code, a part of the runtime) failed, and asking for it again failed the same way although the file itself came: one of the files it imports failed to download, and the browser keeps that failure for the life of the page. No retry can load it, so ogygia stops asking. The islands that need it stay as their server HTML until the page reloads. Said once per page.

cli_server_exited_early

error

ogygia bisect started the commit's server with --start and it exited before --url answered: a server that cannot take its port (EADDRINUSE), a build output that is not there, or a crash on boot. Its output says which. The commit is skipped.

cli_server_not_ready

error

ogygia bisect polls --url until the commit's server answers (any status under 500), for up to --ready ms. A server that takes longer to boot needs a larger --ready; one that listens on another port needs --url to name that port. The commit is skipped.

cli_server_port_busy

error

ogygia bisect starts each commit's server (--start) on the port of --url, and waits for that port to be free first: a server still on it would answer the readiness check, and bisect would measure that server instead of the commit's. Its own servers are gone before the next one starts, so the process on the port is someone else's (a server left running in another terminal, an earlier run): stop it, or point --url at a free port.

cli_transform_failed

error

An MCP tool (ogygia_compile, ogygia_islands, ogygia_explain) ran ogygia's transform on the component it was given, and the transform threw. error is the transform's own message, which usually names the rule the component breaks and links its page.

client_hook_failed

error

A plugin's browser half subscribes to a runtime hook (or has a boot), and its function failed. The runtime calls every subscriber of a hook, and every boot, in plugin order and wraps each call, so one plugin's failure never stops another's hook, the boot or the page (its regions still wake). Said once per plugin and hook; the error follows the message. In dev the hook's payload is frozen: a hook that writes to it fails here too.

client_hooks_init_failed

error

The app's hooks.client init() threw. The error follows the message.

closed_shadow_root_lost

warning

Dev only. When the SPA router (or a region update) changes the page, it keeps the elements it can and copies in new ones from the next page's HTML. A declarative shadow root is copied with its host only when the copy can read it: an open root always, a closed one only when it is shadowrootclonable. A closed root is not supported on an element the update copies in: the copy has no shadow root, and whatever the root painted is gone.

config_helper_moved

error

ogygia.extensions() and ogygia.preprocess() from ogygia/vite did nothing once content moved into its own package, and were removed. A svelte.config.js that still calls one stops here instead of with a bare is not a function.

content_axis_default_missing

error

An axis of dimensions() names a default that is not one of its values. Add it to values, or pick one that is there.

content_block_unregistered

warning

Dev only. A block tree has a node whose type has no component in the registry, so the node and its children are left out. Add the type to the registry, or fix the type name in the data.

content_check_failed

error

A site check (links(), or a check of your own) found errors on a page while it was rendered or prerendered. findings lists each one with the check that found it and, when it knows, the line. Fix the page, or change that check's options.

content_check_warned

warning

A site check found problems on a page that it reports as warnings: the page still renders. findings lists each one with the check that found it and, when it knows, the line.

content_code_arity

error

import.meta.og.code() takes the source, its language, and optionally the fence's meta (title=…, line highlights), each a string written in the source.

content_code_interpolated

error

import.meta.og.code() and import.meta.og.md() are read at build time, so their text has to be in the source as it is. A template literal with an interpolation is only known when the code runs. Write the text as a plain string.

content_code_not_static

error

import.meta.og.code() and import.meta.og.md() are read at build time, so each argument has to be a string written in the source, not a variable or an expression.

content_collection_not_server_only

warning

A content() collection is defined in a module the browser could import. One import from an island or a route component would bundle the whole corpus (often megabytes of compiled markdown) into the client, with no error. Said once per file.

content_config_read_first

error

The svelte config's extensions() and preprocess() read the markdown settings that content({ markdown }) sets in the vite config. Something loaded the svelte config first (often an import of svelte.config.js at the top of vite.config), so it got .svelte alone and no markdown preprocessor. Load the svelte config after the plugin list is built, or let sveltekit() load it.

content_dated_format_invalid

error

dated() reads each entry's date from its name with format, so the format needs the year, the month and the day: YYYY, MM and DD, each exactly once (for example YYYY-MM-DD).

content_dimensions_no_axis

error

dimensions() splits a docs site along axes (a version, a framework). It was given none: add one under axes, or leave dimensions() out.

content_duplicate_id

error

A source's refs() returned two entries with the same id, so one would hide the other. Make the ids unique.

content_folder_duplicate_id

error

Two pages of one folder() source got the same id once their ordering prefixes were stripped (01-intro and 02-intro are both intro). Rename one of them.

content_folder_empty_id

error

A folder() page's path became an empty id once its ordering prefixes were stripped. Give the page a folder with a name.

content_folder_invalid

error

A folder() source checks its folders' NN- ordering prefixes when it is first read: siblings all prefixed or none, one padding width, no repeated number. issues names each folder that breaks it.

content_folder_unexpected_file

error

A folder() source's glob matched a file that is neither a page nor a sidecar (a +meta.json). Every file a glob matches is bundled, so a broad glob drags colocated components and assets in with the content. Narrow the glob to the page and sidecar files.

content_format_not_object

error

A content format expected an entry's data (its module, its metadata, its JSON) to be a plain object, and got got instead. Make the file export, or contain, an object.

content_frontmatter_empty_key

error

A frontmatter line has a colon with no key before it (: value). Give it a key, or quote the line as a string.

content_frontmatter_invalid

error

A markdown file's frontmatter (the block between the --- lines) is not valid YAML. reason says what the parser stopped at. Fix the block, or quote the value it names.

content_frontmatter_tab_indent

error

A frontmatter block indents a line with a tab. YAML indents with spaces only: replace the tabs with spaces.

content_git_cache_unavailable

error

A git() loader checks its repository out into the build cache, node_modules/.ogygia, and that cache is not available in this build. Run the build from the app's root, where node_modules can be written to.

content_git_frozen_no_checkout

error

A frozen build does not fetch: it uses the checkout an earlier build left in node_modules/.ogygia, and there is none. Restore that cache (in CI, cache the folder between runs), run one build that is not frozen first, or pin a sha in the spec.

content_git_spec_invalid

error

import.meta.og.loader.git() takes a repository as owner/repo, optionally with a ref (@main, a tag, a sha) and a folder inside it (:docs).

content_glob_duplicate_id

error

Two files of one glob() source got the same id, so one would hide the other. Rename one of them, or make the id function tell them apart.

content_glob_illegal_id

error

glob() gave a file an id that is empty, contains .., or starts with /. An id becomes part of a URL, so it must be a plain relative path. Fix the id function, or rename the file.

content_highlight_unconfigured

error

highlight() uses the code-highlighting settings the markdown config set up. None is set up in this process: configure markdown in svelte.config, or pass the highlighting options to highlight() as its third argument.

content_leaked_to_client

warning

Documents of a content collection ended up in the browser bundle. A collection imports every document it holds, so importing it into an island ships all of them.

warning

Dev only. The links() check reads each page's links from its entry's meta.links, which only the markdown format collects. This page's collection has none, so its links are not checked. Fill meta.links in the collection's format to check them. Said once per collection.

content_live_change_failed

error

A change from a collection's live source could not be applied: an entry failed its schema, or reading it failed. The error follows the message. That entry keeps its last good version (a new entry stays out until it is valid); every other entry, and every change after this one, still applies.

content_live_source_failed

error

A collection's live source (a loader that streams changes) threw while it waited for the next change: its connection dropped. The error follows the message. The collection keeps what it last loaded, opens the connection again after a wait that doubles (up to a minute), and reads the whole source again then, so a change made meanwhile is not lost.

content_loader_in_component

warning

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.

content_loader_missing

error

content() was called without a loader, the source its entries come from. Pass one: markdown(), json(), blocks(), folder() or glob(), or an import.meta.og.loader macro.

content_loader_not_source

error

A collection's loader must be a source: an object with refs() and get(). Build one with markdown(), json(), blocks(), folder() or glob(), or write the two functions for a source of your own (a CMS, a database).

content_loader_options_unparsable

error

A loader macro reads its preset option at build time, from the options as they are written. These options could not be parsed. Write them as a plain object literal.

content_loader_unknown

error

import.meta.og.loader has four loaders: markdown, folder, json and git. For any other source, write it by hand (an object with refs() and get()).

content_markdown_extension_invalid

error

A plugin offers a markdown extension on its api.ogygiaMarkdown: a name, a cache_key(), and optionally rehype entries and a finish step. This one is not shaped that way, so its markdown would compile without it. The plugin and this version of @ogygia/content do not fit: update them together.

content_markdown_no_metadata

error

A markdown file loaded, but without the metadata the markdown compiler adds. The markdown preprocessor is not running: pass markdown to content() in vite.config, and spread preprocess() into svelte.config.

content_markdown_not_module

error

A markdown source read a file that did not load as a module. The glob behind it matches files that are not compiled markdown: narrow it to the markdown extensions.

content_md_arity

error

import.meta.og.md() takes one argument: the markdown, as a string written in the source.

content_md_dynamic

error

import.meta.og.md() renders its markdown to static HTML at build time. This markdown compiled to something that has to run: a script, a component, an island, a Svelte expression. Keep md() to prose and fenced code, and use a component for the live part.

content_mdsvex_missing

error

Markdown is compiled with mdsvex, an optional peer dependency: it is not installed with @ogygia/content, so an app that uses markdown installs it.

content_outline_weave_failed

error

A live source changed a collection the site's outline arranges, and the outline could not be woven from the new content: an entry it places nowhere, a pick whose entry is gone, or two entries at one address. The error follows the message and names them. The nav, the pages and the addresses stay as last woven, and the outline weaves again at the next change. Fix the content, or the outline.

content_preset_empty

error

A content preset sets nothing, so it would compile exactly like the defaults. Give it its markdown settings, or remove it.

content_preset_name_invalid

error

A preset's name travels in module queries, so it may only hold letters, digits, _ and -. Rename the preset.

content_preset_not_literal

error

A loader macro's preset picks the markdown settings its files compile with, at build time, so it has to be a string written in the source, not a variable.

content_preset_unknown

error

A loader macro names a preset that is not configured. Use a name listed under content({ presets }) in vite.config, or add the preset there.

content_preset_unknown_key

error

A content preset holds one thing: its markdown settings. Move the other key into markdown, or remove it.

content_preset_unknown_query

error

A module was imported with ?og_preset= naming a preset that is not configured. Use a name listed under content({ presets }) in vite.config.

content_preset_unknown_variant

error

A module was imported as a content preset's variant, and no preset of that name is configured. Use a name listed under content({ presets }) in vite.config, or add the preset there.

content_presets_need_markdown

error

Each content preset is merged over the default markdown settings, so content() needs markdown beside presets. An empty markdown: {} is enough.

content_ref_missing_id

error

A source's refs() returned an entry without a string id. Every entry needs one: it names the entry and becomes part of its URL.

content_regions_key_collision

error

import.meta.og.regions() keys each matched component by its file name, and two files give the same key, so one would hide the other. Rename one of them.

content_schema_failed

error

An entry's data did not pass the collection's schema. label names the entry and issues lists what the schema rejected. Fix the entry's frontmatter or data, or loosen the schema.

content_schema_unsupported

error

A collection's schema must be a Standard Schema (most validation libraries make one) or an object with a parse() method. This one is neither.

content_search_engine_missing

error

The docs site's default search engine is an optional peer dependency, so it is not installed with @ogygia/content. Install @orama/orama in the app, or give the site a search engine of its own.

content_search_index_fetch_failed

error

The search box fetched its index and the server did not answer with it. The index is a route the app mounts with site.emit.search(), by convention at search.json under the site's base. Mount it there, or point the search box's endpoint at where it is.

content_search_query_failed

error

The search palette asked its engine (the search worker, or the query function given to Search) for a term, and the engine failed (the error follows the message): a worker that crashed, a backend that is down. The palette shows the error in place of results. The next term typed asks again.

content_search_unavailable

error

The search palette could not load its index (the reason follows the message), so it answers nothing. The message before this one usually says why.

content_site_context_failed

error

The context function passed to site() threw while it read a request. The site still answers, with the context empty: drafts, previews and anything else your filter opens through the context stay hidden for this request. The error follows the message. Fix context so it returns an object for every request (return {} when there is no session).

content_streaming_prerender_list

error

A collection whose loader streams changes cannot list its entries at prerender time: the list would freeze. Use live.list(), or pass mode: "query" to list().

content_with_remotes_not_collection

error

withRemotes() adds a collection's remote functions, so it takes what content() or collection() returned. It was given something else.

context_dropped

warning

A context value set above regions could not be serialized, so regions in the browser do not see it. Pass plain data. For a value with methods, make it a wired class (static wire = import.meta.og.wire(…)): every region gets the one live instance. If no region reads the key, set it with setContext(key, value, { islands: false }).

context_key_one_off

warning

Each region wakes as its own root in the browser, so it reads context the page carries across. A one-off Symbol() key has no twin there: nothing in the browser can name it. Use a string key, or Symbol.for('name'), which the browser rebuilds from its name (or createContext from ogygia). If no region reads the key, set it with setContext(key, value, { islands: false }).

context_marker_large

warning

Dev only. Context set above islands is serialized into the page so the islands can read it, and it has grown large. Slim the values, or keep a key on the server with setContext(key, value, { islands: false }).

context_missing

error

The getter createContext returns reads a value a component above set with its setter. Nothing above set one. Set it in a layout or a parent component; a value set in a csr=false layout reaches every region on the page. When the value is optional, call has() (the third item) before get().

context_unserializable

warning

Part of a context value set above regions does not cross into them: path names where, detail what. Pass plain data there, or a wired class (static wire = import.meta.og.wire(…)) for a value with methods.

context_value_function

warning

A function cannot be serialized into the page, so a region in the browser never sees it. For a value with methods, make it a wired class (static wire = import.meta.og.wire(…)) and set an instance: every region gets the one live instance. A single server function can be marked with import.meta.og.$. If no region reads the key, set it with setContext(key, value, { islands: false }).

continuity_id_collision

error

Two different wired classes claim the same continuity id, so they would share one kept instance. Give each class its own id.

devalue_not_loaded

error

An ogygia bug: please report it with the page that shows it.

devtools_dock_load_failed

error

The browser could not download the devtools dock's code (the network failed, or a deploy removed the file; the error follows the message). The page is not affected, and the dock's button stays: a click, or Alt+O, asks for the code again under a fresh URL.

devtools_on_in_build

warning

A build ran with the devtools dock on, so every page it serves carries the devtools launcher. The dock itself loads only when someone opens it. Said once per build, so a dock left on by accident is seen before it ships.

devtools_page_beacon_load_failed

warning

Devtools is switched on in this browser and the page had no beacon of its own (an app without ogygia's handle gets none from the server), so the dock asked for the beacon's code. The browser could not download it (the network failed, or a deploy removed the file), or the beacon threw as it started; the error follows the message. The page works as before, but this visit is missing from the profiler. The next page load asks for the code again.

devtools_profiler_alloc_sampling_unavailable

error

Printed with OGYGIA_PROFILER_DEBUG set. The runtime refused the heap sampling the profiler asked for (the error follows the message), so this recording does not say which code caused its garbage collection.

devtools_profiler_background_stopped

warning

The trap (trap) and the always-on sampler (sample) record short windows in the background with the process's inspector. One of those windows failed (the error follows the message): most often the inspector is held by another debugger, or the host has none. That loop records no more windows in this process; the dashboard says so under "In the background", with what the trap caught before it stopped.

devtools_profiler_gc_attribution_failed

error

Printed with OGYGIA_PROFILER_DEBUG set. Working out which code caused the recording's garbage collection threw (the error follows the message); the report leaves that part out.

devtools_profiler_get_report_failed

error

Printed with OGYGIA_PROFILER_DEBUG set. The profiler's store failed to read a report back (the error follows the message), so the report is answered as not found.

devtools_profiler_mount_failed

error

The profiler (devtools({ profiler })) loads on the first request, and loading it failed (the error follows the message): a runtime without node:inspector (an edge runtime), or a dev server in the middle of an edit. Every request is still answered, unprofiled, and the next request tries to start it again. Said once per server.

devtools_profiler_put_report_failed

error

Printed with OGYGIA_PROFILER_DEBUG set. The profiler's store failed to save a report (the error follows the message). The report stays in memory, but is gone when the server restarts.

devtools_profiler_runtime_unsupported

warning

The profiler (devtools({ profiler })) times every request with Node's process.cpuUsage, and records with node:inspector and perf_hooks. This runtime does not have lacks (or has it only as a stub that throws), so the profiler goes on without it: every request is still answered and logged, without its CPU time when process.cpuUsage is the one missing, and a recording asked for (from the profiler's pages or the x-profile header) is refused. Said once per server.

devtools_profiler_secret_empty

warning

The profiler was given a secret, but it is empty while the app builds: the environment variable it reads is not set where the build runs. The secret is baked in at build time, so the profiler's UI stays disabled in production unless OGYGIA_PROFILER_SECRET is set on the running server, which some hosts never do.

devtools_profiler_secret_short

error

In production the profiler opens its pages, its x-profiler-key header and its x-profile header only to a secret of at least 16 bytes (profiler({ secret }) or OGYGIA_PROFILER_SECRET): a shorter one can be guessed. Until then the profiler records as usual and nobody can log in to it. Set a longer secret, for example the output of openssl rand -hex 32.

devtools_profiler_session_rejected

warning

A browser sent a profiler session cookie, or had just logged in, and the profiler still did not accept it. diagnosis counts what the request carried (never a cookie's value) and reason reads it: no cookie reached the server (a proxy or CDN in front of the app drops it), the browser sent several session cookies, or the session is not valid (the profiler secret differs between server instances).

devtools_profiler_sink_undelivered

warning

The profiler posts the rows it reads (sink: { url }) one post at a time, in order, and tries a failed post again a few times before the next one goes. This post failed every time (the last error follows the message), so its rows are not at the sink and the site view misses those requests. The site page shows the sink's last answer.

devtools_profiler_store_init_failed

error

The profiler's store threw while it initialized (a missing driver, a bad path, a database it cannot reach; the error follows the message). The profiler keeps its reports in memory instead, so they are gone when the server restarts.

devtools_profiler_upload_too_large

error

An uploaded .ogp profile is Brotli-compressed, and a report a page sends back is gzipped; this one unpacked past the profiler's limit, so the profiler stopped unpacking it and refused it. A real profile is far smaller: it was not made by a profiler, or it was made to fill the server's memory.

dynamic_region_import

error

A region needs a static import and a tag the server can render, so region attributes on a dynamic import() do nothing (Vite drops them). Use a static marked import.

endpoint_bad_signature

warning

Dev only. The region's address does not carry a valid signature: it was edited, or truncated on the way. The endpoint refuses it.

endpoint_foreign_key

warning

Dev only. The region's address was signed by another deployment's key. Route the islands endpoint to the deployment that served the page, or give every deployment the same OGYGIA_SECRET.

endpoint_props_decode_failed

warning

The islands endpoint could not load the region's module, or could not decode the props in its address, so it refused the request and the page keeps the region's fallback. The error follows the message, in the server's log only: the visitor's answer says nothing of it.

endpoint_unknown_id

warning

Dev only. The address names a region this server's build does not have: the page came from another build, or the region was renamed. After a deploy the page reloads its regions from the current build.

federation_audience_missing

warning

A signed call names the app it was meant for, its audience, so a call made for one app cannot be sent to another that trusts the same key. To check that, this app has to know its own host. It is never taken from the request: a server that builds its URL from the Host header would let the caller pick it.

federation_deploy_thaw_undelivered

warning

After a deploy, this app tells its peers to drop the pages they stored with its fragments, as their asset links now point at the build before. These peers refused the notice or never answered, every time it was sent, so their stored pages keep the old build until they expire. A peer usually refuses when it has no key for this app, or something in front of it blocks the request.

federation_mount_no_peer

error

mount() was given a resolver function or a pick, and for this request it returned something that is not a peer. Return one of the peers federate({ peers }) made, for every request the page serves.

federation_open_without_keys

warning

federate() exposes pages or widgets to other apps, but none of its peers has a public key, so no inbound call can be checked: anyone could call the endpoint.

federation_peer_answer_invalid

warning

A peer answers a fragment or widget request with a JSON document and an OK status (a page it does not have is a 404 that still carries its document). This answer could not be used. An error status means the peer failed, refused the call (a 401 or 403: check the two apps' keys), or does not have that widget (a 404). A body that does not parse means something between the apps changed it (a proxy or CDN error page, a cut-off response), or the URL reached something that is not the peer's ogygia handle. Ask the URL yourself, signed as this app, and see what comes back.

federation_peer_read_dropped

warning

A page read whose fetch is dropped by a thaw (a publish or a deploy) or by a mutation reads again, so it never gets the page from before the change. This page's sources kept moving while every one of its fetches was out, so the read stopped rather than fetch it forever. Look for what thaws the page's sources so often: a source published on every request, or a mutation that runs on every read of it.

federation_peer_unreachable

warning

The request to the peer got no response at all: the connection was refused or dropped, the name did not resolve, or no answer came within the peer's timeout. Check that the peer is up and reachable from this app's servers at its configured origin, and that its timeout fits how long it takes to answer.

federation_thaw_notice_failed

warning

After an invalidation, this app tells its peers which of their stored pages used the changed data, so they can drop them. Sending that notice failed (the error, or the peers that never took it after every retry, follows the message), so a peer may serve its stored copy until it expires. A peer usually refuses when it has no key for this app, or its store is down.

federation_unregistered

warning

The federation() plugin serves deferred regions (/og/frag), thaw notices (/og/thaw) and exposed pages and widgets (/og/fragment/*) from the app's one federate() registration. This server got such a request before any federate() ran in it, so it had nothing to serve it with and the request went on to the app's routes. This happens when federate() lives in a module only some routes import (a +page.server.ts): a server that has not served one of those routes yet has no federation.

flags_exposure_failed

warning

The function given to decide({ exposure }) threw, or the promise it returned rejected (a send that failed), so the exposures in that batch did not reach your analytics. The request that read the flags is not affected. Said once, then again only after a send has worked: a sink that stays down does not fill the log.

flags_manifest_written

warning

The build wrote the inventory of every flag() it found, with where each is read, to node_modules/.ogygia/flags-manifest.json. Tools (the devtools, a flag dashboard) read it from there.

flags_plugin_not_running

warning

A flag was read on the server, but the flags plugin never started. Nothing tells the request that its page depends on a flag, so a store (a postrender cache) could keep one variant of an A/B-tested page and serve it to everyone. Said once per server.

flags_source_failed

warning

The source given to decide({ source }) threw, rejected, or (with ofrep()) its endpoint answered an error or could not be reached in time; with openfeature(), one flag's evaluation threw. The request is not affected: each flag the source did not answer is decided by its own rollout, as if there were no source. Said once, then again only after a request the source served worked: a source that stays down does not fill the log.

flags_source_unprimed

warning

A flag has a source, but the request it was read in was never primed by the flags plugin, so every read ignores the source and falls back to the flag's own decision. Said once per server.

fn_factory_missing

error

A function marked to cross into an island is rebuilt on the other side from a factory the compiler generates. That factory's module was not imported here. Import it as a value, not import type.

fn_factory_not_function

error

An ogygia bug: please report it with the page that shows it.

fn_revive_missing

error

An island received a function it cannot rebuild: the module that registers its factory is not in the island's bundle. Import that module as a value in the island.

foreign_page_read

warning

Dev only. An island from another app (a stitched fragment) read the page store. In the browser that is the host app's page, not the fragment's, so the island repaints with different values after it hydrates. Pass the value as a prop, or read it with a remote function.

function_prop_cannot_cross

error

An island's props must be serializable. A function only crosses as a snippet that freezes to HTML, and this one could not.

generated_module_relative_import

error

An ogygia bug: please report it with the file that shows it.

goto_cross_origin

error

goto() navigates inside the app, so a URL on another origin is refused. To leave the app, pass { external: true }: goto(url, { external: true }) does a full page load.

goto_not_http

error

goto() was called with a URL whose scheme is not http: or https: (a mailto:, a javascript:, a custom scheme). Navigate to it with a plain link or location.assign() instead.

handle_secret_too_short

error

A production build signs region capabilities with the secret passed to handle({ secret }), and a short one can be guessed. Use a random secret at least as long as the message says, from the server's environment.

handle_transform_moved

error

An app's own pass over the HTML ogygia sends (a web-component server render, say) is the @ogygia/rewrite package now, so apps without one ship none of its support.

held_fetch_not_timing

error

fetch says when a hole's HTML arrives: 'load', 'idle', 'visible', 'interaction' or a media query. A hole always fetches, so 'none' is not one.

held_fetch_without_render

error

fetch says when a deferred region's (a hole's) HTML arrives, so it only goes with render: 'deferred'. For a hole, write both. For an island that runs its JavaScript at that time, write wake instead.

held_marker_mixed

error

An import in a .ts or .js module is one kind of held region: region: 'raw' (no schedule), wake (an island) or render: 'deferred' (a hole, timed by fetch). Keep the one you mean.

held_region_plain_import

error

A region returned from a load or a remote function has to travel: as HTML, or as a signed address the browser fetches. This one's component was imported plainly, so neither exists.

held_render_live

error

A live region is placed by a Svelte component. A .ts or .js module can only hand out held regions and holes, so mark the import in a .svelte file.

held_render_unknown

error

In a .ts or .js module, render takes one value, 'deferred': a hole whose HTML is fetched from the server.

hole_props_too_large

error

A deferred region's props travel inside its signed address, so they have a size limit. Pass less: an id the region looks up on the server instead of the record itself.

hole_wake_removed

error

A deferred region (a hole) was timed with wake. wake is when an island's JavaScript runs, and a hole ships none: its timing is fetch, when its HTML arrives. Up to 0.13 wake on a hole was read as its fetch; it is a build error now. Write render: 'deferred', fetch: 'visible'.

hole_without_address

warning

A deferred region (a hole) is fetched from an address the server signs while it renders the page. This one was created in the browser, so it has no address and keeps its fallback.

hydration_discarded

warning

Svelte could not adopt the island's server HTML, so it threw it away and rendered the island again in the browser: a flash, and anything injected into that HTML is gone. Three things cause it.

image_binding_missing

warning

cloudflare() makes each file a page rendered on request asks for with the Worker's Images binding, read from event.platform.env. Add it to the Worker's wrangler config ("images": { "binding": "IMAGES" }), or name the one it has: cloudflare({ binding: 'MY_IMAGES' }). Outside a Worker (a Node server) there is no binding: use sharp() there.

image_busy

warning

A live server makes a few files at once and queues a bounded number more, so a burst of asks for new files (a page of many images on a cold server, or a client asking for many URLs) cannot hold unbounded memory and CPU. Past that line, an ask is answered 503 with a retry-after, which no cache keeps; the browser shows the placeholder, and the next visit gets the file. Warm the presets your server-rendered pages use (import.meta.og.image(src, { warm: 'cover' })), or put a CDN in front, which asks once per file.

image_card_css

error

A share card is drawn by satori, which lays out a subset of CSS: flexbox (every element with more than one child says display: flex), sizes, margins and padding, borders and radii, colors and gradients, fonts, text, transforms, opacity, and absolute positioning. It has no grid, no floats, no calc() in every property, no CSS variables in every place, and no z-index. The message names what it refused: change it to something in that subset. The images docs list what works.

image_card_engine_missing

error

A card is drawn from its component by three packages the app installs itself, so an app with no card loads none of them: satori-html reads the component's HTML and CSS, satori lays it out and draws it as SVG, and resvg (@resvg/resvg-js, a native module) turns that into a PNG. The build draws every card a prerendered page names. A server that draws cards on request needs them in dependencies (not devDependencies): a server adapter may bundle every package its app does not list there (adapter-node does), and resvg bundled cannot find its native binary.

image_card_font

error

satori draws a card's text with the fonts the card lists and no other (it reads no system font): fonts: ['./serif.woff', '@fontsource/jetbrains-mono/files/jetbrains-mono-latin-500-normal.woff'], each a path relative to the file, or a package's file. Each must be a TrueType, OpenType or WOFF file (.ttf, .otf, .woff): satori reads no WOFF2. The build reads each file's family, weight and style from the file itself; the card's CSS names the family (font-family: 'Geist Serif') and the weight.

image_card_props

error

A card's files carry its props in their URLs, signed with the rest, so the server that makes a file on request needs nothing but the URL, and nobody can ask it for props the page did not name. So the props are one plain object of what JSON holds (strings, finite numbers, booleans, null, arrays and plain objects; no undefined, Date, Map or function), at most 2048 characters once written in the URL: a title and a few fields. Pass the text the card shows, not the record it came from.

image_card_source

error

A card never lets its drawing engine fetch an image itself: that would fetch any address its markup names, private ones included, with no size or time limit. Each image a card names (an <img src>, a style's url()) is read by ogygia and handed over as bytes. It may be an image of the build (the src of an import.meta.og.image() descriptor, a root-relative asset URL), an http(s) URL on a host image({ remote: { hosts } }) lists (fetched under its size and time limits, like remoteImage()), or a data: URL. Its bytes must be PNG, JPEG, GIF, WebP, AVIF or TIFF. A relative path, another scheme, or a URL with no remote set is refused.

image_decode_failed

error

The encoder (sharp) could not decode the file: it may be damaged, empty, or in a format it does not read (AVIF, WebP, PNG, JPEG, GIF, TIFF and SVG are read).

image_encoder_cannot

error

A file a page asks for on request is made by the app's encoder (image({ encoder })), and not every encoder can make every crop and operation: Cloudflare has no entropy crop, no turn other than a quarter, and no normalize, negate, tint, gamma, or modulate hue or lightness; Vercel only resizes (no crop, position or operation, no named PNG or JPEG, no GIF, TIFF or animated source, only its sizes and qualities). A prerendered page is not affected: the build makes its files with sharp. List an encoder that can after it (encoder: [vercel(), sharp()]: the first that can make a file makes it), pick a crop or operation the encoder can make, prerender the page, or warm the preset (import.meta.og.image(src, { warm: 'cover' })) so the build makes those files. The docs list what each encoder can make.

image_folder_refused

warning

A build keeps the files it makes (its store) and the remote images it fetches in the image cache (node_modules/.ogygia/image/), or with no cache in a temporary folder of its own, and hands both folders to the processes it starts in the environment variable __OGYGIA_IMAGE_BUILD, which a process inherits from the one that started it. A store deletes its files unused for a month and its oldest past its size, so a build takes a folder from that variable only when it is inside the image cache, a temporary folder this build made, or your own folder in the system's temporary folder (ogygia-image-<uid>/) while it is yours alone, its links resolved. This one was not: a process that started this build set the variable, or it is left over. The build used its own folder and went on. Unset __OGYGIA_IMAGE_BUILD before you build.

image_glob_empty

error

An empty gallery is almost always a wrong pattern, so the build stops instead of rendering nothing. Patterns resolve against the file that names them.

image_macro_arity

error

import.meta.og.image reads one image file at build time: import.meta.og.image('./hero.jpg'), or with options, import.meta.og.image('./hero.jpg', { quality: 70 }).

image_macro_not_literal

error

The build reads the call before any code runs, so the path and options must be literals: no variables, no template strings with ${…}, no function calls. To pick an image at run time, make every candidate at build (import.meta.og.image.glob('./gallery/*.jpg')) and choose among the results.

image_mark_left

error

While a page prerenders, each image URL it is given starts with the build's mark (//<random>.ogygia.invalid), a host Kit's crawler does not follow, because the file is not made yet. When the prerender ends, the build makes every file and removes the mark from every prerendered file, so each URL names its file under _app/immutable/og/. A URL made absolute (new URL(laid.src, page.url) for an og:image or a feed) becomes the file at Kit's prerender origin, which is what page.url names while a page prerenders: set kit.prerender.origin to the site's origin (https://example.com), or the build cannot know it. This URL was changed another way (escaped, or encoded into a query string), so the build cannot find it. Write the URL as <Img> or getImage() gave it, or as an absolute URL; encode it in the browser, not in the page.

image_markdown_html

error

A markdown image (![alt](./x.jpg)) is encoded at build and rendered through <Img>. An HTML <img> is copied as text, so its relative path points at nothing once the page is served. Use the markdown form, or put the file in static/ and name it from the site root.

image_markdown_no_file

error

A local image in markdown resolves against the markdown file, like an import. Markdown rendered from a string has no file, so there is nowhere to look. Use a site-absolute or remote URL there (/images/x.png), or move the markdown into a .md file beside the image.

image_no_encoder

warning

With sharp(), the default encoder, image files are made by sharp, a native Node module. A runtime without it (an edge or Workers runtime, an install that skipped sharp's binary) cannot make them. On Cloudflare Workers, list the encoder that can: image({ encoder: cloudflare() }) from @ogygia/image/vite. Otherwise prerender the pages that show images (their files are made at build), warm the presets server-rendered pages use (import.meta.og.image(src, { warm: 'cover' })), or deploy to a Node server. A share card (import.meta.og.image.card()) is drawn by satori and resvg, which run in Node only: on an edge runtime, a page rendered on request serves a card's files only when the build made them, because a prerendered page names the same card with the same props. Prerender the pages that show cards, or deploy to a Node server.

image_no_kit

error

The image plugin serves files under the app's base path and asset folder, which it reads from SvelteKit's own Vite plugin. Without SvelteKit there is no server to make the files and no paths to name them by.

image_no_server

error

Every file an <Img> asks for is a URL the server signs and the image endpoint makes. Both live in @ogygia/image's server half, which ogygia's handle starts: list image() in vite.config's plugins and export ogygia's handle from hooks.server.ts.

image_not_found

error

An image path resolves against the file that names it, like an import. Check the spelling and the folder, and that the file is committed.

image_option_invalid

error

The option has a value the encoder cannot use. The message names the rule it breaks.

image_option_unknown

error

A misspelled option would otherwise be ignored and the image encoded the default way.

image_outside_src

error

Files are made from an image when a page asks for them, by the server, which reads the original with Kit's read(). Kit can only read an asset its server bundle carries; the image plugin makes every image under src/ one of them, except src/lib/server/ (never published) and test files (*.test.*, *.spec.*, __tests__/). Move the file under src/ (a $lib folder, or beside the page or document that shows it).

image_owed_end

warning

On SvelteKit 3, under vite build --watch, a build makes the images its prerendered pages name after every plugin has run. If it failed before that, or another plugin still runs, and a rebuild starts, they are made before the rebuild. One of them, or a page that names it, failed for the reason given. If the build still goes on, it fails with the same error. The pages of that build that still named images with no file are removed from the build output, so that no rebuild publishes them. Mend that error, and the one that failed the build if there was one.

image_pages_left

warning

Under vite build --watch a build that cannot make an image removes the pages that name it from the build output, so that no later rebuild publishes them. One of those files could not be read or deleted, for the reason given, so a later rebuild may publish pages whose images do not load. The build's own error is said beside this warning. Remove the prerendered folder of the build output by hand (SvelteKit's .svelte-kit/output/prerendered), mend that error and build again.

image_path_malformed

error

Markdown writes an image path as a URL, so a space is %20 and an accent is its UTF-8 bytes, like %C3%A9. This path has an escape that does not decode to text. Write the file name as it is (![](<./my photo.jpg>)), or escape it as UTF-8.

image_preset_unknown

error

A preset is a name for how an image is shown (thumb, cover), declared once in vite.config: image({ presets: { thumb: { width: 400, aspect: '1/1' } } }). A name the config does not declare would render the image some other way, so the render stops.

image_prop_invalid

error

Every file an <Img> (or getImage()) asks for is named by its size and quality, and the image endpoint makes only whole sizes above 0 and a whole quality from 1 to 100. A fraction of a pixel is rounded (width={1000 / 3} shows 333 pixels wide), but a size of 0 or less, one that is not a number, an aspect that does not read as a ratio, a box taller than the source can fill (more times as tall as wide than the source has pixels of height), a file past 99999 pixels a side, a position that is not one of the crop positions, or a quality out of range would name files no server makes, so the render stops. So does an of whose id or ph the build did not make (a descriptor stored outside the build and changed there): both go into the image's style attribute.

image_query_invalid

error

The og-image query is written by the image macro, its options encoded inside. Import images through import.meta.og.image('./x.jpg', { … }) instead of writing the query by hand.

image_remote_failed

error

A remote image is fetched once into the build cache (node_modules/.ogygia/image/remote/) and asked again on every build with its etag or last-modified, so an unchanged image is not downloaded again. This one could not be fetched and was never fetched before: the host answered an error status, took longer than remote.timeout (default 10 s), sent more than remote.maxBytes (default 20 MB), followed more than 3 redirects, or sent something that is not a PNG, JPEG, WebP, AVIF, GIF or TIFF image. Check the URL in a browser, or raise the limit in image({ remote }).

image_remote_host

error

The build fetches a remote image (import.meta.og.image('https://…'), a markdown image or a frontmatter URL) only from the hosts the app lists in vite.config: image({ remote: { hosts: ['images.example.com', '*.cdn.example.com'] } }). A name with *. in front lists every name below it; plain http:// is taken only from an entry that says http://. Each redirect is checked the same way, so a listed host cannot hand the build a file from one that is not. A markdown or frontmatter URL on a host that is not listed stays a plain <img> or string.

image_remote_invalid

error

remoteImage(url, { width, height }) names an image a server load knows only at request (a CMS entry's cover): an https:// URL (or http:// from a host listed with it) with no user or password in it, and the image's own width and height in pixels, whole numbers from 1 to 99999, so the page reserves its box before the file arrives. alt is text, and version a string or a number that changes when the bytes behind the URL do. Whether the URL's host is listed in image({ remote: { hosts } }) is checked where it is fetched: the image endpoint, or the build for a prerendered page.

image_remote_refused

warning

A remoteImage(url, { width, height }) is made by the image endpoint from the URL's bytes, fetched when a file is first asked for, under image({ remote: { hosts, maxBytes, timeout } }). It answers 404 when the URL's host is not in hosts (the URL was signed, but the list changed since, or remote is not set), when a redirect leads to a host that is not, or when a host listed only by a *. entry resolves to a private address (list that host itself to allow it); 413 when the image is past maxBytes; 504 when it took longer than timeout; 502 when the host answered an error status, could not be reached, or sent something that is not a JPEG, PNG, WebP, AVIF, GIF or TIFF image. None of these answers is kept by a browser or a CDN, so the next ask tries again.

image_remote_stale

warning

Every build asks the host whether a remote image changed (one request with the copy's etag or last-modified). The host could not be reached, or did not answer with an image, so the build uses the copy in its cache (node_modules/.ogygia/image/remote/): an offline build still works. If the image changed on the host, this build shows the old one. Build again once the host answers.

image_run_kept

warning

A build notes the images its prerendered pages name in a folder of its own, under the image cache (node_modules/.ogygia/image/runs/), or with no cache under your own folder in the system's temporary folder (ogygia-image-<uid>/runs/), and deletes that folder at its end. The build finds the folder in the environment variable __OGYGIA_IMAGE_BUILD, which a process inherits from the one that started it. If the reason says the folder is not one of those runs, or that a link is in its way, the build deleted nothing and went on: a process that started this build set the variable, it is left over, or the runs folder is a link or is not yours alone. Unset __OGYGIA_IMAGE_BUILD before you build, and make sure the runs folder is a real folder only you can open. If the delete itself failed (a permission, a file in use), the build went on too, and its own error, if any, is the one it threw. A run folder a build leaves behind is removed a day later by the next build.

image_run_refused

warning

A build notes the images its prerendered pages name in a run folder of its own, under the image cache (node_modules/.ogygia/image/runs/), or with no cache under a temporary folder it owns (ogygia-image-<uid>/runs/, or one it made), and hands that file to the processes it starts in the environment variable __OGYGIA_IMAGE_BUILD, which a process inherits from the one that started it. A build, a dev server and Kit's prerender take the file from that variable only when it is in a folder right under one of those runs folders, its links resolved and no link in the run's own place. This one was not: a process that started this build set the variable, or it is left over. A build started a run of its own and went on; a prerender that was handed it named its images by the image endpoint's own URLs instead. Unset __OGYGIA_IMAGE_BUILD before you build.

image_settle_failed

warning

A page asked for a file its signed URL describes, and making it failed: the original could not be read (Kit's read()), or the encoder (sharp) could not decode or write it. The page keeps its placeholder.

image_share_format

warning

An og:image (or twitter:image) is read by the crawlers of chat apps and social sites, and most of them read PNG and JPEG only. Name a PNG or JPEG file there: a share card's own src is a PNG, and a preset for share images says its format (share: { width: 1200, height: 630, formats: ['png'] }). Said in dev only.

image_sharp_missing

error

sharp is a peer of @ogygia/image: the app installs it, so the app picks its version and its native binary is installed for the app's platform. The build and the dev server measure every image with it, so it must be installed and listed in the app's own package.json. Any server build also needs it in dependencies (not devDependencies): a server adapter may bundle every package its app does not list there (adapter-node does), and sharp bundled cannot find its native binary, so every image the server makes on request would answer 500 (image_no_encoder). A fully prerendered app (adapter-static) needs sharp installed and listed, and devDependencies is enough.

image_source_changed

warning

Every image file is named by its source's content (the id at the start of its name). A page named this file, and the original was edited (or replaced) after that page was rendered, so making the file now would put the new pixels under the old name, where a browser or CDN keeps them for good. Reload the page: it names the new source's files. On a live server, a descriptor whose id and src name two different files (one built by hand, or from a CMS) gets this too: make descriptors with import.meta.og.image().

image_still_left_out

warning

A moving image (an animated GIF or WebP) gets a still twin: its first frame, shown at (prefers-reduced-motion: reduce), which is what WCAG 2.2.2 asks for. A file a page rendered on request names is made by the app's encoder, and Vercel's optimizer serves a moving source as it is, with no way to keep one frame. List sharp() after it (encoder: [vercel(), sharp()]) so the app's endpoint makes stills, or prerender the pages that show moving images.

image_store_unsafe

warning

A live server keeps the files it made under the system's temporary folder, in a folder only its user can read and write. Another user's folder, or a link, at that place could hand out files it chose, under URLs browsers keep forever, so the server keeps nothing there. Remove the folder, or run the server as the user that owns it.

image_store_write_failed

warning

The image endpoint keeps each file it made on disk, so the next ask, and the next start, reads it instead of making it again. Writing there failed: a full disk, a folder that is read-only, or a quota. The file was still answered. Until the store can write again, the server keeps the files it made in a small memory cache (the least recently asked go first) and makes the others again on the next ask. Free space in the temporary folder, or make it writable.

image_too_large

error

The encoder (sharp) reads at most 268,402,689 pixels a frame (16383 × 16383), and an animation at most 4,294,967,296 pixels over all its frames: a long screen recording of 1200 × 800 with 300 frames is 288 million, well inside. A file past either would take minutes to encode on every server that makes it, so the build stops here. Make the image smaller, or cut the animation shorter or to fewer frames per second (a GIF made at 10 frames per second is a third of one at 30), or show it as a video.

image_unsettled

error

Every image file a prerendered page names (in its markup, or through getImage() in a CSS background), and every file of a warmed preset, is made by the build and written under the app folder (_app/immutable/og/), so any host serves it as a file. This one failed: its original could not be read from the build output, or the encoder (sharp) could not decode it. The build stops rather than ship a page with a missing image. Under vite build --watch the pages of that build that still named images with no file are removed from the build output, so that no later rebuild publishes them.

image_vercel_config

error

With vercel(), a page rendered on request names each file as a /_vercel/image?url=…&w=…&q=… link, and Vercel answers it only when the deployment's images config (.vercel/output/config.json, written by adapter-vercel) allows that width (sizes), that quality (qualities, when it lists any), the format the browser gets (formats), and, for a full-URL paths.assets, its host (domains or remotePatterns). Pass the encoder's own: keep it in one file (export const encoder = vercel({ sizes })), import it in svelte.config.js and in vite.config, and write adapter({ images: encoder.images }), adding the assets host to domains if there is one. vercel() needs adapter-vercel: /_vercel/image exists only on Vercel.

image_warm_unknown

error

import.meta.og.image('./hero.jpg', { warm: 'cover' }) makes the files of the cover preset at build, so a server-rendered page finds them ready. The name must be one of the presets in vite.config: a misspelled one would warm nothing, and the first visitor would wait for every file.

image_watch_rebuild

error

On SvelteKit 3, a watch rebuild prerenders the pages and runs the adapter straight from Kit's watcher, after every plugin hook, so the image plugin cannot make a prerendered page's files between the two, as a full build does. A rebuild's pages name only files a build has already made: those the last build made (a remote image, and a share card that shows one, as the last build fetched it) and those the modules warm. This page names one that none made (a new image, a new remote URL or share card, or new options on one), so the rebuild stops rather than write a page with a missing image. Stop the watch and run vite build again, or give a local image a warm preset (import.meta.og.image('./x.jpg', { warm: 'thumb' })).

import_key_invalid

error

importKeys renames the import attributes ogygia reads (wake, fetch, render, preset, region). Each name is written as a key inside with, so it has to be a JavaScript identifier.

import_keys_not_distinct

error

Two of the attribute names in importKeys are the same, so the build could not tell which one an import means. Give each its own name.

interaction_hydrate_failed

error

An island waking on interaction threw while it hydrated, so it stays as its server HTML. The click that woke it is replayed on that HTML. The error follows the message.

island_block_in_inline

warning

Dev only. The island renders a block element (a div, a p) inside a paragraph. The browser's parser moves that block out of the paragraph before any script runs, so the region is empty and a second copy mounts beside the first.

island_chunks_not_emitted

warning

The client build found islands whose host components no route of this build renders, so it left their chunks out. Nothing is wrong unless an island is missing from a page that should have it: then check the route that renders its host is part of the build.

island_code_refused

error

An island's code was to load from an origin the page does not load code from. The runtime imports island code only from the page's own origin, its own (Kit's paths.assets), and the origins the server named on the runtime's script (a federated peer's, from federate({ peers })). Anything else came from the page's markup, not from ogygia: a region's entry or src written by content that is not the server's own render. The island stays as its server HTML.

island_context_unprovided

warning

An island reads a context nothing in the browser provides. On a csr=false page a layout or page runs only on the server, so a value it sets with Svelte's setContext never reaches the island there. The island renders a different tree and Svelte throws its server HTML away.

island_deps_handoff_missing

error

The client build writes a handoff the server reads as it renders: each island's CSS and code chunks, and what each reads of the page. It is inlined into the server bundle when the build can, and otherwise read from og-region-deps.json beside the server output. This server found none (missing), or found one that did not read or parse (unreadable). Until it has one, a hole renders unstyled, no island code is preloaded and every page ships its whole seed.

island_graph_late

error

Before a client build loads any module, ogygia follows each island's imports so that every module an island reaches reads the island's $app/*, whichever page or island the bundler meets first. It reads the imports a module spells out: static imports and import() of a literal string, in .svelte, .js, .ts, .jsx, .tsx and their .mjs/.cjs/.mts/.cts forms. An import() of a computed string, an import.meta.glob, an export {} from with no names, an import a plugin writes, and any import made by a file of another kind (a markdown page or other source a plugin compiles) is only seen when the bundler loads it, and here that came after the module was already built as page code.

island_handoff_write_failed

warning

The server build writes which components it transformed, so the client build emits only the islands those pages place, and which runtime its pages load, so the client build ships that one. Writing it failed (the error follows the message), so the build stops: without it the pages could name a runtime the client build never makes.

island_healed

warning

Dev only. Something edited the island's HTML before it woke (a design-system runtime, an A/B tool, a translator). ogygia put the server HTML back and hydrated that, instead of letting Svelte throw it away and re-render. Whatever the edit added is gone.

island_hydrate_failed

error

The island's module loaded, but hydrating it threw. The error follows the message: it is usually the component itself throwing while it initializes.

island_import_unresolved

error

An island was marked on an import from a package, and the module ogygia generates for it imports that same specifier. It does not resolve from the file that marked it.

island_load_failed

error

The island's module could not be fetched, so the island stays as its server HTML. This is a load error, not a hydration error: the file is missing or the network failed. After a deploy, ogygia retries the current build's file first.

island_load_failed_stale_deps

error

Dev only. Vite re-optimized its dependencies while the tab was open, so the island's imports point at files that no longer exist. ogygia reloads the page to recover.

island_on_kit_page

warning

Dev only. On a csr=true page Kit hydrates the whole page, so an island there is an ordinary component. Its wake does nothing on this page.

islands_endpoint_conflict

error

A server has one islands endpoint: the path the handle answers holes on, and the path every capability is minted for. It is decided once, by the first handle() (or the first render, when none named one), and never moves: pages already minted and the handle that answers them must name the same path. A later handle() named another one, so its endpoint is not used. Two copies of ogygia in one server, or two handle() calls, are the usual cause; one with no endpoint names the default, /__ogygia__.

jumpstart_await_cycle

error

jumpstart() builds the server with Rolldown's strictExecutionOrder, so each module runs when it would without it. Rolldown cannot yet run a module that awaits at its top level when it sits in, or below, a cycle of static imports (a barrel index.js that re-exports db.js, which awaits, and auth.js, which imports the barrel back): the server would never finish starting (rolldown/rolldown#9548).

jumpstart_external

warning

jumpstart() bundles every dependency into the server build, so a cold start reads a few files instead of hundreds. This line names each package the server build still imports from node_modules at run time, and why: it is listed in jumpstart({ external }), it is external in the Vite config (resolve.external or ssr.external), or Vite or another plugin kept it out. The deploy needs each one installed.

jumpstart_external_invalid

error

jumpstart({ external }) is a list of package names, the way Vite's resolve.external takes them: external: ['sharp', '@acme/db']. Each one stays outside the server bundle and is imported from node_modules at run time.

jumpstart_external_none

warning

jumpstart() bundled every dependency into the server build: it imports nothing from node_modules at run time. A package that cannot be bundled (a native addon, a package that reads files next to its own module, one that must be a single instance) goes in jumpstart({ external }).

jumpstart_file_beside

warning

jumpstart() bundles every dependency into the server build, so a module no longer sits in its package's folder. A module that reads a file next to itself (new URL('./data.wasm', import.meta.url), path.join(__dirname, 'x.json'), its folder from import.meta.url joined where it is found or held in a variable and joined, import.meta.resolve('./x'), a createRequire require of a relative path) then looks in the wrong place, and fails when it runs: the first time a page that imports it loads. The build cannot tell whether the read happens, so this line names each package whose code has such a path.

jumpstart_option_unknown

error

jumpstart() takes one option, external: the packages that stay outside the server bundle. A key it does not know would be ignored without a word, so the build stops instead. Check the spelling.

jumpstart_run_order

warning

Without jumpstart(), a dependency that only some pages import runs when the first of them loads. Bundled, it runs then too, but only when Rolldown's strictExecutionOrder builds the server, which keeps each module's run time. This build could not use it, for the reason the line gives, so every bundled dependency runs when the server starts, and when Kit's build reads the routes. A module that needs your hooks to run first (a message formatted with a locale they set), or that opens a connection, then runs too early.

keep_fallback_inline

error

keepFallback() tells a deferred region to keep the page's fallback. Inside a wake island the region renders inline instead, so nothing can keep a fallback. Move the region out of the island (into the page, a layout or a lake).

keep_fallback_signal

error

Not an error: the signal keepFallback() throws to end a deferred region's render. You only see it when something catches and logs every error the render throws.

keep_without_router

warning

Dev only. keep keeps an island across client navigations, so it needs the ogygia router. With ogygia({ router: false }) every navigation is a full page load and nothing is kept.

kit_boot_failed

error

On a csr=true page, an island inside a lake or a hole answer waits for SvelteKit to start before it hydrates. One of the files Kit's own boot script imports, or one of the route's files Kit's start loads next (its layout and page nodes), failed to download (the network dropped it, or the file is missing after a deploy), and the browser keeps that failure for the life of the page: Kit will not start. The waiting islands stop waiting and fail, and keep their server HTML. Reloading the page loads Kit again. Said once per file.

kit_config_not_literal

error

ogygia reads some keys of a route's export const config while it builds, from the source. This one is an expression (a variable, a call), which only has a value when the app runs. Write the value itself: true, false, a number, a string or null.

kit_config_unreadable

warning

ogygia loads svelte.config.js to find the routes folder and Kit's output folder, and loading it threw (the reason follows). It uses Kit's defaults. If the app moved either folder, fix the config so it loads.

kit_env_missing

warning

On a csr = false page Kit's client never starts, so it never hands its public env to $app/env/public. The server writes that env into the page instead, for every region whose code imports the module, and the module reads it from there, as the module first runs. Known cases where it finds none of its own: an island inside a region the server renders later (a defer hole) or a remote call's answer, an island a router prefetch warms before its page is open (both #2219, https://github.com/ogygiajs/ogygia/issues/2219), and a federated peer's island on the host's page, which reads an empty env rather than the host's (#2221, https://github.com/ogygiajs/ogygia/issues/2221). Outside those, a page whose own region imports the module and carries no env, or one that does not decode, is an ogygia bug: please report it with the page that shows it.

kit_env_unpatched

warning

SvelteKit's browser module for $app/env/public reads its dynamic public variables from the payload Kit's client boot writes. A csr = false page never boots Kit's client, so ogygia makes that module fall back to the env the server writes into the page. This time it could not: the module did not read the payload the way ogygia expects. A newer SvelteKit may have changed the module.

kit_env_unshipped

warning

On a csr = false page Kit's client never starts, so ogygia writes Kit's public env into the page for the islands that import $app/env/public. A variable's value could not be serialized: a schema returned a value devalue cannot carry (a function, a class instance). Return plain data from the variable's schema: Kit itself cannot send that value to a csr = true page either.

kit_env_version_unread

warning

On a csr = false page ogygia writes Kit's public env into the page beside an identity of the build, and an island takes that env only when the identity is its own build's. The identity is made from the app's package name, Kit's paths.base, the app dir and Kit's version.name, which ogygia reads off SvelteKit's own Vite plugin (the one sveltekit() adds) in the resolved plugin list. This time that list held none, so a federated app with the same package name and app dir is not told apart. Add sveltekit() to the plugins in vite.config; pass it version: { name } (a commit hash, say) to pin the name.

kit_page_unbuilt

error

The build reads every csr option in the app's routes. When each one is a literal false (pages, layouts and error pages alike), it ships a runtime without the code that shares a page with SvelteKit. This page says Kit hydrates it all the same, so its regions keep their server HTML and Kit hydrates the page as it would without ogygia. A page from another build, or a route file the build did not read, does this; else An ogygia bug: please report it with the page that shows it.

kit_page_waiting

warning

Dev only. On a csr=true page, an island inside a lake or a hole answer waits for Kit to apply its page before it hydrates. Kit has not done so yet.

kit_remote_src_missing

error

ogygia reuses SvelteKit's own client code for remote functions, from the src/ folder Kit publishes. This version of @sveltejs/kit does not ship it. Upgrade to 2.70.2 or later.

kit_start_ungated

warning

Dev only. On a csr=true page with islands inside lakes, ogygia rewrites the one expression of Kit's inline start script that imports Kit's entry, so Kit starts after ogygia's runtime. Here it found Kit's script but no such expression: Kit changed how its start script loads its entry (an upgrade), or the app uses bundleStrategy: 'inline', whose start script imports nothing. Report it with your Kit version; the canary packages/core/test/canary/kit-start-script.test.ts names the shapes ogygia knows.

lake_mounted_without_html

warning

Dev only. On a csr=true page Kit mounted a lake in the browser, but a lake is server HTML and there was none to adopt. Keep such lakes in a layout that stays across navigations, or serve the route with csr = false.

live_feature_missing

warning

Dev only. A live region woke, but the build has no live feature to hydrate it with. An ogygia bug: please report it with the page that shows it.

live_props_not_serializable

warning

A live region refreshes from a signed address that carries its props. These props cannot be serialized, or are too large, so the region gets no address and never refreshes. Pass plain, small props.

live_region_no_endpoint

warning

Dev only. The live region has no signed address from the server render, so it shows its cached HTML and never refreshes.

live_region_no_host

warning

A render: 'live' lake revalidates when the island around it remounts. This one has no island around it, so it never refreshes on a regular page. Wrap it in a wake: 'load' island.

machine_bad_option

error

An option was given a value it cannot take. retries counts tries: a whole number of 0 or more. A flights keep is milliseconds: 0 or more, Infinity for until max lets it go. A flights or cache max is the most weight it keeps: a finite number more than 0 (a cache with no bound is refused). A say() max is the most keys it remembers: a whole number, 1 or more.

machine_bad_time

error

A scope's timeout() takes milliseconds, 'frame' or 'idle', and every() takes milliseconds: a number of 0 to 2^31 - 1 (about 24.8 days). Node and browsers run a timer with a longer, negative or non-number delay after 1 ms, so it is refused instead.

machine_bad_timeout

error

A state in after ends on its own: still in it after ms, the machine takes the step to. to must be one of that state’s own steps (the timed step is a move like any other), and ms a number of 0 or more, or a function that makes one from the state’s value.

machine_decision_outside

error

A decisions() table lists every value each input field can take (inputs), so its tests can walk every combination. It was asked to decide an input with a field outside that list (or left out). In dev and rules builds this throws; a production build does not check.

machine_decision_refused

error

A decisions() table was asked to decide an input its refuse names as one no app can produce, and refuse said why. It throws in every build: a plan made for an input nobody thought through is worse than no plan.

machine_decisions_rule_broken

error

check() from @ogygia/machine/testing ran each named rule over every row of a decisions() table, and some rules returned false (or threw). Each one is named with the first row that breaks it: its input and its plan (or why it is refused). Fix decide (or refuse) for that input, or the rule if it is the rule that is wrong.

machine_decisions_too_many

error

A decisions() listing from @ogygia/machine/testing (rows, check, table, dead_fields) walks every combination of the table's inputs, and there are more than its max. Raise max if the full walk is what you want, or pass sample: { seed, size } to walk that many combinations picked by the seed (the same seed picks the same ones). A table that big usually has a field that should be split into a table of its own.

machine_dispose_failed

error

A scope closed with close() (or using) and something it adopted disposes itself asynchronously (Symbol.asyncDispose); that disposal rejected. The error follows the message. Nobody waited for it, so it is said here: close with await using or await s[Symbol.asyncDispose]() to wait for such disposals and get their errors.

machine_duplicate_step

error

Each target appears once in a state's list of steps.

machine_evict_failed

error

A cache()'s onEvict threw while it heard a value leave. The value had already left: the cache goes on, and the notices after it still run. Its error follows this message. Catch inside onEvict when a cleanup can fail.

machine_flight_raise_failed

error

A flights() run listened for its flight's priority going up (flight.onRaise), and the listener threw when a caller joined at a higher priority. The caller that joined is not the one at fault, so it is not failed: the error goes to the page's error handler (reportError: the console and window.onerror), as an event listener's would. The flight is raised all the same, and its other listeners still hear it.

machine_graph_off

error

graph() and paths() read a definition for tests, devtools' diagrams and the simulator's coverage. A production build leaves the drawing out of every boot. Ask for them in dev, or in a rules build (OGYGIA_RULES=1).

machine_illegal_move

error

A machine was asked to go to a state its steps do not allow from the state it is in. Each state lists where it can go next (steps), and a move outside that list is refused.

machine_kind_in_data

error

A state's kind is its name, set by the machine. Its data cannot carry its own kind. Rename the field.

machine_mailbox_handler_failed

error

A mailbox() handler threw while it ran in its turn, after events ahead of it. Nobody waits on its stack (it was posted earlier, by someone who has moved on), so its error goes to the page's error handler (reportError: the console and window.onerror), as an event listener's would, and the box goes on with the next event.

machine_not_disposable

error

adopt() takes what disposes itself: an object with a [Symbol.dispose]() or [Symbol.asyncDispose]() method (a flights, a scope, a lock holder). For anything else, hand the scope its release: defer(() => x.close()), watch(observer) for an observer.

machine_observe_off

error

observe() (and trace(), which is made on it) watches machine moves for tests, ogygia's rules and the simulator. A production build folds the telling out, with the check every move made for an observer, so a watch started there hears nothing. Watch in dev, or in a rules build (OGYGIA_RULES=1).

machine_observer_failed

error

A function given to observe() threw. The error follows the message. The move itself is done, and the other observers still heard it.

machine_outbox_gave_up

error

An outbox() tried a send as many times as its retry policy allows (or until its deadline), and every try failed. The last error follows the message. Nothing of it is kept: the work it carried did not happen.

machine_queue_stale_failed

error

A queue() told a waiting job it was stale (its deadline came, it was cancelled, or the owner closed) through its stale option, and it threw. The job is the one at fault, so the queue goes on: the error goes to the page's error handler (reportError: the console and window.onerror), and the other waiting jobs still go stale or start, so none waits forever.

machine_queue_start_failed

error

A queue() started a job with its start option, and it threw. The job is the one at fault, so the drain is not stopped: the error goes to the page's error handler (reportError: the console and window.onerror), as a task would, and the jobs after it still start. The job counts as started: release its place when its work is done.

machine_queue_yield_failed

error

A queue() with a budget had started jobs for its ms and called the budget's yield to hand the thread back, and it threw. A drain that waits for a resume that never comes would leave every waiting job waiting forever, so the queue goes on at once instead: the error goes to the page's error handler (reportError: the console and window.onerror), and the drain resumes in this step, without the yield.

machine_slot_version

error

A process-global slot (slot(name, version, make)) is shared by every copy of a package the process loads. Two copies at different versions of its shape were loaded together: usually two versions of an ogygia package in one app (a dependency pinned to an older one, or a federated peer).

machine_stage_step_failed

error

A stage() gives back what it changed when it does not commit (its discard steps) or when its commit throws part way (its undo steps). One of those steps threw. The error follows the message. The other steps still ran; whatever this step should have put back may still be in place.

machine_timed_step_failed

error

A state's timeout came, and taking its step failed: its data function threw (the machine stays where it is), or a cleanup of the state it left threw (the step was taken). The error follows the message. A timer has no caller to throw to, so it is said here.

machine_timeout_failed

error

A state in after whose ms is a function threw when the machine entered the state. The error follows the message. This visit to the state gets no timeout; fix the function.

machine_timeout_not_a_time

error

A state in after whose ms is a function made a value no timer can hold: not a number, negative, or longer than 2^31 - 1 ms (about 24.8 days). Node and browsers would run such a timer after 1 ms and end the state at once, so this visit to the state gets no timeout instead. Make the function return a time in range (clamp it).

machine_unknown_state

error

A machine definition named a state that is not a key of its steps: as initial, as a target in a state's list, or in wait(). Every state is a key of steps, a final state with an empty list (done: []).

machine_unreachable_state

error

No chain of steps leads from the machine's initial state to this state, so nothing can ever enter it. Add a step that leads to it, or remove it.

macro_bake_arity

error

import.meta.og.bake runs one function at build time and inlines its result. It takes that function and nothing else: import.meta.og.bake(() => buildNav()).

macro_bake_eval_failed

error

The build bundled the baked function with the module's imports and ran it, and it threw. reason is the error.

macro_bake_not_function

error

import.meta.og.bake was given something other than an inline function (a variable, a value). The build evaluates the function's own source, so write it inline: import.meta.og.bake(() => buildNav()).

macro_bake_not_serializable

error

The baked function ran, but its result cannot be written into the module as a constant. reason names the value that failed.

macro_dollar_misuse

error

import.meta.og.$ hoists a function into its own module so a handle to it can cross an island boundary. The build has to see the function itself, so the mark only works as a direct call around an inline function: import.meta.og.$((args) => ...).

macro_in_markup

error

A plugin's import.meta.og.* macro is compiled where the module's code is: a JS or TS module, and the <script> of a .svelte component (image() compiles a markdown page's <script> too). A call in a template expression ({…} in markup or in a markdown page's prose), or in a markdown page's <script> for a macro that does not compile there, is not rewritten. Call the macro in the component's <script> (or in a .ts module it imports) and use its value in the markup. A call written as text (a code span, fenced code, plain prose) is no call and needs no change.

macro_needs_plugin

error

This import.meta.og.* macro is compiled by a plugin, and that plugin is not in the app's Vite plugins. Without it the call would reach the browser or the server as is, and fail there. Install the package and list its plugin beside ogygia() in vite.config plugins (before sveltekit()).

macro_outside_app

error

The import.meta.og.* macros (bake runs code at build time) work in the app's own source, and in the files a package lists under "ogygia.files" in its package.json. An installed file outside that list that uses one fails the build, and nothing in it runs. If the package is meant to ship ogygia code, add the file (or a glob for it) to that package's "ogygia.files"; otherwise it should not use the macro.

macro_source_misuse

error

import.meta.og.source declares a data source. Its id is the file and export name it is declared under, so the build only accepts it as the initializer of a top-level export const: export const loadThing = import.meta.og.source(fn).

macro_store_misuse

error

import.meta.og.store is a compile-time mark, not a value: it only works as a direct call around a store factory, import.meta.og.store((seed) => writable(seed)). The build registers that factory so an island rebuilds the store through it, custom methods and all.

macro_store_returns_non_store

warning

A store factory marked with import.meta.og.store returns something that is not a store on one branch (undefined, null, a number). Where that branch runs, the value reaches islands as plain data, not as the store.

macro_wire_misuse

error

import.meta.og.wire makes a class transportable across an island boundary. The build replaces the member that holds it, so it only works in one place: a static member of a class, static wire = import.meta.og.wire(codec), where the codec has encode and decode.

max_page_age_invalid

error

maxPageAge is how long, in seconds, a page's expired region addresses may still be renewed. Write a number, such as 30 * 24 * 3600 for 30 days, or 0 to never renew.

nested_island_with_parent

warning

Dev only. An island inside an island hydrates with the outer one, so its own wake is ignored when it differs from the outer island's. Put a lake (wake: 'none') between them to give it its own schedule.

nested_region_rides_parent

warning

A region inside an awake region hydrates with it, once, as part of the outer island. Its own wake schedule is ignored. To give it its own schedule, put a lake (wake: 'none') between the two.

nested_server_island_inline

warning

Dev only. A deferred region inside an island cannot be fetched on its own, so it renders inline as part of the island's HTML.

og_derived_formula_missing

error

An og_derived crossed into an island without its formula. Mark the formula with import.meta.og.$ where og_derived is called, so it travels too.

optimize_deps_includes_ogygia

warning

Vite's optimizeDeps.include lists part of ogygia. ogygia keeps itself out of Vite's dependency pre-bundling, and listing it brings a second copy of its runtime into the dev page. Remove those entries.

option_unknown

error

ogygia() was passed a key it does not have: a misspelling, or an option from an earlier version. It is refused rather than ignored, so nothing silently stops working.

outside_page_data_key

warning

Outside a full page render only the server loads run. A key a universal load returns (+page.ts, +layout.ts) is missing there. Return it from a server load, or pass it to the region as a prop.

outside_page_data_unavailable

warning

A region rendered outside its page (an islands endpoint request) reads that page's page.data, which ogygia looks up from the page. The lookup failed for the reason given, so the region rendered with an empty page.data.

ownership_conflict

warning

Dev only. A web component inside the island added children where Svelte's hydration expects the server's nodes. To hydrate the island, the repair removed them.

package_files_escapes

error

An ogygia.files entry points outside its own package (../, or a symlink in the package that leads out of it), which would compile code the package does not own. List paths inside the package only.

package_files_missing

warning

An ogygia.files entry in a dependency's package.json names a path that is not in the package. It is skipped. The package should fix or remove the entry.

package_files_not_array

error

A package puts its files on ogygia's compile surface with ogygia.files in its package.json: a list of paths or globs inside the package, like npm's files. This one is not a list of strings.

package_marks_undeclared

warning

A file in a dependency marks imports for ogygia (with { wake }), but ogygia only compiles a package's files when the package asks for it. So the marks do nothing.

page_modules_not_absolute

error

pageModules was given a relative file path. Pass absolute paths, for example resolved from the app's root.

page_payload_unreadable

warning

Dev only. The server wrote data into the page for its islands (the page seed, the page facts, the holes record, the context marker, remote functions' data), and the browser could not decode it. The usual cause is a custom type the server's transport encodes and the browser has no decoder for. Islands then read nothing there. Give the type a decoder in transport (hooks.ts), or pass plain data.

page_promise_pending

warning

Dev only. A load returned a promise (Kit streaming), and the page's response waits for it: a page load streams its value into islands after the document, a router fetch settles it before the document goes out. There is no deadline: a slow stream is allowed, and the wait ends when the visitor leaves. A promise that never settles keeps the response open (and, on a router fetch, the page unsent) for as long as the visitor stays. Give the work behind it a timeout of its own. Said once per response.

page_promise_unresolved

error

A promise in page.data streams into islands: the page carries it pending, and a script later in the same response settles it. Here that can no longer happen, so the promise is rejected with this error and {#await} shows its catch branch instead of waiting forever. why=stream: the page finished loading with no value for it (the response was cut short, or something between the server and the browser dropped its end). why=devalue: the value came, but the browser could not download the code that reads it. why=answer: on the server, a region rendered outside its page (a hole, a remote call) reads the page's data from Kit's data answer, and that answer ended (it broke, or the request was over) before the promise's value came.

page_reads_claimed

error

Two plugins answer which page.data keys a module reads. Only one can: list one of them (dataShake() from @ogygia/data-shake/vite is the one ogygia ships).

page_seed_ref_missing

warning

Dev only. An island's props point into page.data, but the page did not ship that part, so the island reads undefined there.

page_seed_report

warning

An island that reads page.data gets a copy of it in the page. When the build can see which keys it reads, the island is pinned to them and only those ship. When it cannot (the whole object is spread, passed on, or read with a computed key), the island ships all of page.data.

personal_response_unmarked

warning

A page that carries something for one browser (its devtools events, the profiler's beacon, the devtools switch's cookie) is marked cache-control: private, no-store so no shared cache keeps it. This response's headers cannot be changed (a Response from fetch(), or Response.redirect(), handed back as it is), so it goes out with the headers it has, and a shared cache could keep it. The error follows the message. Return a new Response (new Response(res.body, res)) from the hook or route that made it.

plugin_after_sveltekit

error

Vite runs plugins in the order they are listed. ogygia and its plugins must see each module before SvelteKit does, so list them first: plugins: [ogygia(), flags(), sveltekit()].

plugin_capability_message

error

A message that starts cap| is a signed hole's, and a signed hole is opened only through app.capability.open: it charges the visitor's rate budgets in order (the probe before the signature, the render after), as a region hole does. Mint with app.capability.mint and open with app.capability.open, or sign a message that does not start cap|.

plugin_client_hook_unknown

error

A client realm's hooks keys must name runtime hooks (RuntimeHooks from ogygia/plugin/client). A misspelled one would never be called.

plugin_client_hooks_unread

error

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.

plugin_factory_not_called

error

A plugin is listed by its factory's name without calling it. Add the parentheses: flags(), not flags.

plugin_hook_failed

warning

A plugin's hook threw. ogygia logs it and goes on with the next plugin. The error follows the message.

plugin_listed_twice

error

The same ogygia plugin appears twice in plugins. List it once, with all its options.

plugin_macro_claimed

error

Two plugins registered the same import.meta.og macro. One of them has to use another name.

plugin_macro_name_invalid

error

A plugin's macro is a camelCase name under import.meta.og. The names wire, $, source, store and bake are ogygia's own.

plugin_name_missing

error

definePlugin() was called without a name. The name is the plugin's package name: ogygia resolves the package by it.

plugin_needs_plugin

error

This plugin works only beside another one, which the app does not list. Import the plugin it names from its package and list it beside ogygia(), before sveltekit(). postrender() needs dataShake(): without it every deferred region looks the page up, and that renders the stored page again on each fetch.

plugin_not_listed

warning

This package has a part that runs in the build (for @ogygia/flags: the flag inventory, node_modules/.ogygia/flags-manifest.json, and the server half that tells each request which flags it read). That part runs only when the package's plugin is listed. Add it beside ogygia() in vite.config plugins, before sveltekit(). Said once per build.

plugin_options_not_json

error

A plugin's options are written into the server build, so they must survive JSON.stringify. Set up live objects (clients, functions) in hooks.server.ts instead.

plugin_package_unresolved

error

A plugin's name is its package name, and ogygia resolves the package by it from the app. Nothing by that name is installed there: install the package, or fix the name.

plugin_realm_not_file

error

A plugin's server or client location does not point at a file. Resolve it next to the factory, so it is the file the package ships: import.meta.resolve('./server.ts').

plugin_realm_not_location

error

A plugin's server and client name the module that runs there, as a location, not the module itself. Resolve it next to the factory: server: import.meta.resolve('./server.ts').

plugin_session_order

error

An ogygia() plugin is made, configured (config), then resolved (configResolved) once: its compiler is made from the resolved build. A hook that needs the compiler runs after that, and the build is resolved only once per plugin. A bundler or a tool that calls the hooks in another order meets this. An ogygia bug: please report it with the file that shows it.

plugin_without_ogygia

error

An ogygia plugin runs inside ogygia(), so it does nothing alone. Import ogygia from ogygia/vite and list ogygia() first in plugins.

postrender_adapter_request_failed

error

A store or edge adapter called its service's HTTP API (to purge a URL, or to run a store command) and the service answered with an error status. status and body are its answer.

postrender_capture_failed

warning

Postrender reads each storable page to store it (its stitched holes rewritten, its headers made). That step threw for this page (the error follows the message). The visitor got the page as the app rendered it, marked no-store, and nothing was stored: the next request renders it again. Said once per page.

postrender_edges_without_shared_store

warning

postrender.handle() was given edge adapters but no store, so each server instance keeps its own memory store. An invalidation evicts the page on the instance that runs it and purges the edge, but the other instances keep their stale copy and serve it to the edge again.

postrender_fanout_failed

warning

An invalidation reaches the store and every edge adapter at once. One of those calls failed (what names it; the error follows the message); the others still ran. The page may stay stored, or cached at that edge, until it expires.

postrender_handle_unlisted

warning

postrender.handle() is in the hooks, but the plugin's server half never started, so nothing is ever stored.

postrender_invalidate_not_source

error

invalidate(fn, args) evicts the stored pages that read a data source with those arguments. It only knows the functions declared as sources: this one is not.

postrender_stays_per_request

warning

Dev only. The page's render read something personal (a cookie, a header, the visitor) or answered in a way that cannot be shared (a status other than 200, a set-cookie header, streamed load promises), so it is rendered per request and never stored. refusal names what.

postrender_store_client_missing

error

The client handed to the store adapter has no set commands, which the adapter needs to file each stored page under the sources it read (import.meta.og.source). Pass a client that has them.

postrender_store_failed

warning

A call to the store given to postrender.handle({ store }) threw (the error follows the message). A store that is down never fails a render: a read is a miss, a write or an evict is skipped. So every page renders fresh, nothing is kept, and an evict may leave a page stored until it expires. Said once, then again only after a store call worked: a store that stays down does not fill the log.

postrender_store_no_evict_by_tag

warning

An invalidation by source or tag needs the store to evict every page filed under a tag, through evictByTag. The configured store has none, so nothing was evicted. Add evictByTag to the custom store, or use one of the built-in stores.

postrender_tag_evict_failed

warning

The store's evictByTag threw for one tag (the error follows the message). The other tags were still evicted and purged at the edges; this tag's pages stay stored until they expire.

preference_default_invalid

error

A preference's default must be one of its values.

preset_empty

error

A region preset names a set of import options (with { preset: 'card' }). This one sets none. Give it its options, or remove it.

preset_key_unknown

error

A region preset holds the options a marked import takes. key is not one of them; allowed lists those that are.

prop_mutation

warning

Dev only. An island's props are a snapshot the server serialized, or a reference into page.data that every island shares. Writing to them updates nothing on the page (or leaks into page.data). Copy the value into the island's own $state and change that.

prop_not_serializable

error

An island's props are serialized into the page so the browser can hydrate it. Functions and promises cannot be serialized, and a class instance can only when its class declares a wire codec.

rate_limit_shared_address

warning

The islands endpoint's render budget (ogygia({ rateLimit })) is per client address, the one your adapter gives (event.getClientAddress()). This address is private, loopback or link-local, so no visitor has it: it is a reverse proxy's or a load balancer's, and every visitor behind it shares one budget, so normal traffic gets 429s. Tell your adapter which header holds the visitor's address (adapter-node: ADDRESS_HEADER, with XFF_DEPTH for X-Forwarded-For). Said once per server.

raw_region_on_client

error

A held region is signed on the server, so region() on a with { region: 'raw' } component must run there: in a load, a remote function or a render.

ref_kind_missing

error

A value crossed into an island as a reference of a kind this bundle does not know. Import the module that registers that kind as a value.

region_answer_denied

warning

The islands endpoint refused the signed address of a region (a 403), so its fallback stands. The reason is in deny.

region_answer_older

warning

Two answers for the same region reached the browser (two commands that both return it, say), and the older one arrived last. Each carries the version its server gave it with region(C, props, { version }), so the browser kept the one with the newer data. Nothing to fix: this is what the version is for. It shows in dev so a version that does not move when the data does is easy to spot.

region_answer_redirected

warning

A handle that runs before ogygia.handle() answered the region request itself: an auth redirect, a locale bounce, a 404 page. The runtime refuses such an answer and keeps the fallback.

region_attribute_unknown

error

An import of a .svelte component carries an attribute in its with clause that ogygia does not read: a misspelling (wkae), a retired key (partial), or an option that belongs in a preset (margin, maxAge). It is refused rather than ignored, so the import never silently stays a plain component.

region_binding_not_component

error

One with { … } clause covers every name its import binds, so each one becomes a region: a component you place as <Name /> or hand on as a value (region(Name), a prop, a registry). Calling it, reading a member off it, spreading it, rendering it as text, typeof, {@render}, {@html}, an action or a transition all mean the name is not a component. Usually a tool merged two imports of one module into one. Split them: the components keep the with clause, the rest get a plain import line.

region_children_not_portable

error

A deferred region or a held region renders on its own, from its props alone, so markup written between its tags has nowhere to go. Pass the data as props and put the markup inside the component.

region_context_key_one_off

warning

Each region wakes as its own root in the browser, so it reads context the page carries across. A one-off Symbol() key has no twin there: nothing in the browser can name it. Use a string key, or Symbol.for('name'), which the browser rebuilds from its name (or createContext from ogygia). If no region reads the key, set it with setContext(key, value, { islands: false }).

region_dotted_tag

error

A marked import becomes one region, so the build cannot reach a component hanging off it (Menu.Item). Import that component on its own and mark that import.

region_endpoint_foreign

warning

A region's endpoint pointed at another origin. The runtime only fetches region answers from the page's own origin; the fallback stands.

region_endpoint_unbuilt

error

The build reads the app's regions and leaves the islands endpoint out of the server when none of them fetches HTML from it (no deferred region, no lake, no held region). A page from an earlier build that had one, still open or cached, asks for it; so does a request made by hand. Reload the page to get this build's.

region_fetch_failed

warning

The request for a region's HTML failed (the network, a server error). The runtime retries a few times; the fallback stands until one succeeds. The error follows the message.

region_host_skipped

warning

ogygia could not parse the component, so its marked imports were left as plain imports: no island, no hole. The Svelte compiler reports the parse error itself. Fix it and the regions come back.

region_import_bare

error

A side-effect import (import 'x', or import {} from 'x') binds no name. A region mark only means something on a name you place as <Name /> or hand to region().

region_import_invalid

error

A marked import (one with wake, render, fetch, preset or region in its with clause) is written in a way the build cannot turn into a region. problem says what is wrong and what to write.

region_import_namespace

error

A region mark (wake, render, fetch, preset or region in the with clause) makes every name the import binds a region. A namespace import binds an object of exports, not a component, so it cannot be one. Import each component by name instead.

region_import_no_specifier

error

A marked import has no module path the build can resolve. Import the component from $lib/..., a relative path, or a package subpath such as 'pkg/component'.

region_import_type_only

error

import type, or a type specifier inside the braces, imports only a type. Types are erased before the code runs, so a region mark on one marks nothing. Keep region marks on value imports of components and import types on a separate line.

region_newer_page_data

warning

A region's answer was rendered against newer page.data than the Kit page in the browser holds, so the islands inside it would hydrate against older values. Call invalidateAll() before refreshing the region.

region_program_missing

error

The build reads the app's regions and ships only the programs they need: a deferred region's fetch (the hole program), a held region's updates (the live program). This page has a region that needs one, and the build saw none that did, so the region keeps the HTML the server wrote and never updates. A region written into the page from outside the app's code (HTML from a CMS, a page from another build) does this; else An ogygia bug: please report it with the page that shows it.

region_program_unbuilt

error

The build reads the app's regions and ships only the programs they need, on the server and in the browser alike: a deferred region's render and fetch (the hole program), a lake's (the lake program), a held region's updates (the live program). The server was asked to render a region that needs one, and the build saw none that did, so the page's runtime could not revive it. The page still renders: the region shows its waiting UI (a deferred region's fallback, a held region's placeholder or children; a lake shows nothing) as plain HTML, and nothing loads or updates it. A region the build never read (a package that does not declare its regions) does this; else it is an ogygia bug: please report it with the page that shows it.

region_promise_no_placeholder

warning

Dev only. A region given a promise shows nothing until it resolves. Give it a placeholder snippet for the wait.

region_render_abandoned

warning

A hole's render did not finish within its deadline, so the islands endpoint answered with the fallback and gave the render's slot to the next hole. The render still runs (a render cannot be cancelled) until what it awaits ends. Renders that outlive their deadline usually await an upstream that hangs: give that fetch a timeout of its own. Said once each time a render is abandoned while no other is.

region_render_failed

warning

A region's server render threw, so the islands endpoint answered 500 and the page keeps the region's fallback. The error follows the message, in the server's log only: the visitor's answer says nothing of it.

region_schedule_missing

error

The build reads when the app's regions run (a wake, a hole's fetch or prefetch, a lake's revalidation) and ships only the schedules they use: idle, visible and media queries each have code of their own, left out when no region asks for them. This page has a region scheduled on one the build saw no region use, so it runs on load instead, sooner than asked. A region written into the page from outside the app's code (HTML from a CMS, a page from another build) does this, and so does a value no schedule holds (a typo) in a build without media queries, which cannot tell the two apart; else An ogygia bug: please report it with the page that shows it.

region_snippet_on_client

error

region_snippet(fn) renders the snippet on the server to freeze it. In the browser, build the region from a raw { render, setup } snippet instead.

region_value_not_raw

error

The region import attribute marks a held region and has one value, 'raw'. It carries no schedule. To give the region one, mark the import with wake instead, or pass wake where it is placed: region(C, props, opts).

region_version_invalid

error

region(C, props, { version }) takes how new the data behind the region is, so the browser can keep the newest answer when two arrive for the same region. The version must be a number, a Date, or a string Date.parse() reads (an ISO date). This one is none of those, or is NaN.

region_wake_unknown

warning

A region's wake (or a hole's when) names when it runs: load, idle, visible, interaction, or a media query (a ( with a ) after it). This one names none of them: a typo, or a value an app computed at runtime (region()'s options). The build refuses an unknown value it can see on an import; this one reached the page. The region wakes on load, the one fallback for a value no trigger holds.

relocation_unpatched

warning

Some values are known only once the bundler has transformed every module: the og.$ functions an app defines, and which server regions read page.data. The build writes a placeholder for each and fills it in as each chunk is finished. A placeholder was left in the output, or the module that carries it is in the output and none was filled. This is an ogygia bug, or another plugin rewrote the chunk after ogygia filled it.

remote_arg_not_data

error

A remote function was called from the browser with an argument that holds an ogygia value: a region, a snippet, a function, a wired class instance, a store or a derived store. The server refuses it with a 400 and runs nothing. Those values travel from the server to the browser only.

request_cleanup_failed

warning

Work a request started (a timer, a stream, a fetch) is let go when its response ends or its visitor leaves. One of those cleanups threw. The response was not affected. The error follows the message.

request_event_server_only

error

getRequestEvent() was called in the browser. There is no request there: a deferred region's HTML is fetched from the server, so read the request in the component that renders on the server, and pass what the browser needs as props.

restore_handoff_unknown

warning

A render's plan may say how a host's restored shadow root is handed to its component with og-handoff: adopt (the default) keeps the server's tree for the component to hydrate or keep; replace removes it the first time the component writes into the root. This host's value is neither, so the restorer treats it as adopt. If the component renders beside the tree, the server's copy shows twice.

restore_host_invalid

warning

The restore attaches a shadow root to each element ogygia marked (og-h). This one cannot have one: its name is not a valid custom element name in this browser, or it is a built-in element that never takes a root (markup a sanitizer let through can carry the mark). It keeps the server's markup with ogygia's marks taken off, and every other host is still restored.

restore_late

warning

A custom element ogygia restores (an og-h host) already had a shadow root when the restore reached it: a component runtime upgraded it first. The restore keeps the root the component made, puts its light DOM back into Svelte's form (its children, its attributes) and drops the server's rendered copy, which would otherwise show a second time through the slot. Until the component renders, that part of the page is empty.

restore_markup_broken

error

A rewrite changed a restored region's markup so that its hydration markers no longer match. diff names the first difference. (The restore runs as a self-contained script, so it prints this code's link itself.)

restore_sheet_missing

warning

A render of a host's plan names the sheets for its shadow root in og-shadow="key …". The restorer finds each one by its key in the page (or in the answer that brought the host): a <template data-og-head="key"> (a 'shadow' sheet) or a <style data-og-head="key"> (a 'page' sheet, which the document applies too). A key with neither gives the root nothing, so the component paints without that sheet until its own runtime styles it.

restorer_unloaded

error

A page whose document carries no restorer (nothing on it was restored) loads the rewrite plugin's copy as a chunk of its own, for the region answers it fetches later: a hole, a lake, a router swap. That chunk failed to download, so an answer the rewrite reshaped goes in as it came, and its web components may hydrate over the wrong markup. The error follows.

rewrite_after_ogygia

error

ogygia reads the request's rewrites when its own handle starts, so a rewrite placed after it would never run on this response. Rewrites run in the order they are listed, all before ogygia:

rewrite_element_failed

warning

Your render threw, returned the wrong number of results, or returned something that is not HTML closing everything it opens. ogygia called it again for each element alone; this one still failed, so it went out as ogygia rendered it and renders in the browser. The rest of the page is not affected. Said once per response and element name, in every build.

rewrite_element_split

warning

The page streams, and a matched element started in one chunk and ends in a later one (an {#await} inside it). Rendering it would mean holding the chunk until it closes, so it goes out as ogygia rendered it and renders in the browser. Said in dev, once per response.

rewrite_marks_lost

warning

ogygia marks each custom element it will restore (og-h) before your render, and puts Svelte's markup back in the browser before anything hydrates. This render dropped the mark (a serializer that keeps only known attributes, a sanitizer), which leaves nothing to restore by: Svelte would hydrate the render's markup, mismatch and mount the region again. So the element went out as ogygia rendered it. Said once per response and element name.

rewrite_page_failed

error

The page function given to rewrite() threw, or dropped ogygia's og-h marks from a host ogygia restores. In production that document or answer goes out as ogygia rendered it, and this is said once for it; in dev it is thrown, so a broken rewrite shows at once.

rewrite_plugin_missing

error

A rewrite from @ogygia/rewrite is a Kit handle, and the rewrite plugin is what runs it: it marks the HTML before your render and puts back what the render moved before anything hydrates. Without the plugin your render would never run, so every request fails instead.

route_config_key_claimed

error

Two plugins claimed the same key of a route's export const config, so a route could not say which one it configures. One of them has to use another key.

route_config_key_invalid

error

A plugin claimed a key of a route's export const config that is not a camelCase name. Use one such as postrender.

router_css_inactive

warning

Dev only. A page rendered outside Kit's routes needs a plugin to name its modules so their CSS can be linked. With @ogygia/router, add router() from @ogygia/router/vite to the Vite plugins.

rule_address_bar_drift

warning

Dev and e2e only (a rule ogygia checks on itself). With no navigation out, the address bar is the router's page on screen. They differ: a later back or forward step would show the wrong page, or scroll to the wrong place. If the app writes history itself (outside pushState/replaceState from $app/navigation), that is the likely cause; else An ogygia bug: please report it with the page that shows it.

rule_asset_not_prefixed

warning

Dev and e2e builds only (a rule ogygia checks on itself). Within one request, ogygia asks Kit's asset() for the prefix it puts before a path once, then writes each of its URLs as that prefix and the path. This Kit answered a path some other way, so a URL ogygia wrote differs from Kit's own: please report it with your Kit version and paths config.

rule_capability_not_path

warning

Dev and e2e builds only (a rule ogygia checks on itself). A region capability URL is always a path on the page's own origin (/…), so the browser fetches it from the same server that signed it. This one had a scheme or host (often a paths.base set to a full URL). An ogygia bug, or a configuration ogygia should refuse: please report it.

rule_failure_uncoded

warning

Dev and e2e only (a rule ogygia checks on itself). Every failure ogygia lets out names its code's page, and its internal STALE answer is never a rejection. One got out without either: An ogygia bug: please report it with the page that shows it.

rule_flight_kept_failure

warning

Dev and e2e builds only (a rule ogygia checks on itself). Shared work (a render, a fetch that callers join) keeps its answer for the next caller, but never a failure: the next caller tries again. One kept an error as its answer, so every later caller gets it.

rule_head_adopted

warning

Dev and e2e only (a rule ogygia checks on itself). A <base> re-points every relative fetch on the page, and a meta[http-equiv] that refreshes, sets a content security policy or sets a cookie acts the moment it lands, so a navigation never adopts one from a fetched page: only the first document's own count. One came into the head later. If the app adds it itself, set it in the first document's head or as an HTTP header (a CSP header cannot be loosened by a meta); else An ogygia bug: please report it with the page that shows it.

rule_hole_page_read_unpredicted

warning

Dev and e2e builds only (a rule ogygia checks on itself). With dataShake() listed, the build reads each server island's code for the page.data keys it reaches, and an island that reads none skips the page look-up. This one read a key anyway, so it rendered with undefined there. A read the analysis missed: please report it with the island's code. Removing dataShake() makes every server island look the page up.

rule_kept_unkeyed_read

warning

Dev and e2e builds only (a rule ogygia checks on itself). A cached hole's render is kept for every later caller with the same key. One that read something per visitor (a flag, a cookie, a header, locals) for an anonymous visitor, or page.data with no page in its key, was kept anyway, so other visitors get this visitor's answer. An ogygia bug, please report it.

rule_lake_restored

warning

Dev and e2e only (a rule ogygia checks on itself). Before an island hydrates, the server HTML of each region inside it that never wakes (a lake) is lifted out, and after the hydrate it goes back into the lakes the island rendered, the first into the first. The island rendered a different number of lakes than it had, so one lake's content was lost or one lake was left empty. A lake that renders on the server only, or only in the browser (an {#if browser}), does this; else An ogygia bug: please report it with the page that shows it.

rule_markup_known

warning

Dev and e2e only (a rule ogygia checks on itself). The page markup ogygia writes and reads back (its data-og-* and data-ogygia-* attributes) is declared in one table, so a writer and a reader never meet through a name only one of them spells. The page carries a marker the table does not declare: a renamed or misspelled one, or a new one not added to it. Only ogygia's own markers are read: any data-ogygia-*, and data-og-* on an ogygia-* element. An app's own data-og-* elsewhere is left alone. An ogygia bug: please report it with the page that shows it.

rule_old_page_open

warning

Dev and e2e only (a rule ogygia checks on itself). Each page the router shows owns what it starts (listeners, timers, streams), and all of it is let go when the next page takes over. Something of an earlier page is still open: An ogygia bug: please report it with the page that shows it.

rule_parse_upgraded

warning

Dev and e2e only (a rule ogygia checks on itself). A region or hole answer is parsed in a document with no browsing context, so no component's constructor runs before the restore puts the answer in the shape its components expect. An element of an answer was built during the parse anyway: the engine built custom elements in a document that has no registry. An ogygia bug: please report it with the page that shows it.

rule_region_answer_behind

warning

Dev and e2e only (a rule ogygia checks on itself). Every answer for a deferred region lands in one store, by the region's address, and the store keeps the newest (by when it was asked for). Each region bound to that address paints what the store holds. One region was left on an older answer, or never got the newest. An ogygia bug: please report it with the page that shows it.

rule_region_answer_shared

warning

Dev and e2e builds only (a rule ogygia checks on itself). Every answer of the region endpoint carries Referrer-Policy: no-referrer (its URL is a capability, and must not reach another site in a Referer) and a Cache-Control that no shared cache keeps (no-store, or private). This one did not: something between the endpoint and the response (a plugin, a hook) changed its headers, or ogygia did. Please report it.

rule_region_left_busy

warning

Dev and e2e only (a rule ogygia checks on itself). A region element runs a few state machines: its fetch, its wake, its live mode, its paint. When the element leaves the page, each goes back to rest, so nothing of it waits on something that can no longer happen. One of them was still in the middle of its work after the element left. An ogygia bug: please report it with the page that shows it.

rule_region_mounted_twice

warning

Dev and e2e only (a rule ogygia checks on itself). A region element holds one island at a time, and an island whose element left the page is let go with it. One held two, or kept its island after its element left: An ogygia bug: please report it with the page that shows it.

rule_region_program_shipped

warning

Dev and e2e builds only (a rule ogygia checks on itself). The build reads the app's regions and ships only the programs they need: a deferred region's fetch (the hole program), a held region's updates (the live program). A region on the page needs one the build left out, so it keeps the HTML the server wrote. A region written into the page from outside the app's code does this; else An ogygia bug: please report it with the page that shows it.

rule_request_scope_open

warning

Dev and e2e builds only (a rule ogygia checks on itself). The work a request starts (its timers, streams, fetches) is let go once its response ends. A response ended with its request's work still held, which leaks with every request: an ogygia bug, please report it.

rule_rewrite_after_cancel

warning

Dev and e2e only (a rule ogygia checks on itself). Once the request is cancelled (the visitor left, the connection closed), its rewrites stop: no render is called, no result is written into the page, and no failure is said, since nobody receives the page. One went on: that is a bug in ogygia, please report it.

rule_seed_key_unshipped

warning

Dev and e2e builds only (a rule ogygia checks on itself). With dataShake() listed, the build reads each island's code for the page.data keys it reaches, and the page seed ships only those. Island code read a key the server had and the seed left out, so it saw undefined. A read the analysis missed: please report it with the island's code. Removing dataShake() ships all of page.data again.

rule_transition_name_unique

warning

Dev and e2e only. A view transition pairs an element of the old page with one of the new by its view-transition-name. When two elements on a page share a name, the browser skips the whole transition, not only that pair. Give each element its own name, or name only one: two <Img morph> of one source on a page share og-img-<id>, so keep morph on one.

rule_turns_counted

warning

Dev and e2e only (a rule ogygia checks on itself). Islands that are ready to hydrate wait for a turn, one per task, the ones on screen first. The scheduler keeps a count of the turns waiting and picks the next one from two lists, on screen and not. The count and the lists disagree, so the next pick could find nothing and islands could wait forever. An ogygia bug: please report it with the page that shows it.

runtime_features_unnamed

error

The server build names the runtime its pages load once it has compiled every module, and hands that name and its features to the client build, which ships that runtime. One side found a region needing a feature the other side's runtime does not have: a file only one of them compiled. This is an ogygia bug; please report it with the build's output.

runtime_load_failed

error

The runtime's script, or one of the files it imports, failed to download (a dropped connection, a file a deploy removed). The runtime never ran, so every island on the page stays as its server HTML: links and forms still work, nothing interactive does. Reloading the page loads it again. Printed by the runtime's script tag itself, as the page link alone.

runtime_marks_late

warning

A build picks the runtime's features once, from the regions it knows when the bundler loads the runtime entry. This file was first reached later, while bundling, and one of its regions needs a feature (a lake, a keep, a held region, a deferred hole, a wake on interaction) the runtime was made without. The region then never wakes or never fills.

sass_missing

warning

ogygia compiles the styles of components it serves itself (holes, router pages). One is written in SCSS and no Sass compiler is installed, so its CSS ships as written. Install sass-embedded or sass.

scoped_css_failed

warning

ogygia compiles a component's styles on their own to ship them with its HTML, and that compile failed (reason). The styles ship without Svelte's scoping, so its rules can reach the rest of the page. Fix the component so it compiles.

script_bad_attribute

error

Options other than the body become attributes of the script element, so each must be a valid attribute name.

script_import_not_url

error

Each entry of imports is a module URL, as a string.

script_imports_need_module

error

imports become static import lines, which only work in a module: add type: 'module'.

script_not_json

error

The value is written into the page as JSON, so it must serialize to JSON.

script_one_kind

error

A script has one body: pass one of run, json, ld, importmap or speculation.

script_run_not_function

error

script({ run }) takes a function, which it inlines as the script body.

script_run_rewritten

error

run is inlined into the page as its source, so it cannot use what Vite rewrites for the server: an import() or an imported binding. Declare the module in imports and read it from run's first parameter.

scroll_handling_noop

warning

The ogygia router restores and resets scroll itself on every navigation; disableScrollHandling() does nothing there.

scss_compile_failed

warning

A component's SCSS did not compile (reason), so its style block ships as written. Fix the stylesheet.

secret_conflict

error

The server decides its signing key once, the first time it mints or verifies a region capability. A second, different secret arrived after that, and is ignored: every capability keeps verifying with the first key.

secret_in_client_chunk

error

The secret that signs region addresses, or a server module that signs with it, ended up in a file the browser downloads. Usually a universal or client module imports a server-only module, or reads OGYGIA_SECRET and puts it in its output. Find the import that brings it into the client and move that code to a server-only file (+page.server.ts, hooks.server.ts, $lib/server).

secret_missing

warning

Without a secret, each deployment signs with its own random key. A page cached across a deploy, or served by one backend while another answers its islands endpoint, gets its holes refused. Set a stable OGYGIA_SECRET in the server environment, or pass one to handle({ secret }).

secret_missing_at_runtime

error

The build saw OGYGIA_SECRET but the running server does not, so it signs with a random key of its own. A page from another deployment carries capabilities signed with another key, and the islands endpoint refuses them (x-ogygia-deny: foreign-key).

secret_too_short

error

OGYGIA_SECRET signs region addresses. A short key can be guessed, so a production build refuses it (dev accepts any). Use a long random value, such as the output of openssl rand -base64 32.

server_exports_kept

warning

The bundler fixes a shared server chunk's exports before the build's feature word removes the code that used some of them, so after the bundle is made ogygia drops each export no chunk imports, and the code only those exports reached, by having the bundler shake the chunk again. When a step of that fails, the chunk is left exactly as the bundler wrote it: nothing is lost but bytes. This is an ogygia bug, or another plugin wrote code the pass cannot read.

server_features_late

error

The server build fixes its feature word when it first loads ogygia's server code, from the app's source and the files packages list under "ogygia.files". A component it reaches only while bundling (one from an installed package that does not list it) is read after that, and a feature only it needs is missing from the server's code. List the component in its package's "ogygia.files", or place the region from the app's own source, so the server build reads it before it fixes its features.

server_runtime_unnamed

error

The server build writes a handoff file for the client build, beside its own output, that names the runtime its pages load. This one names none: it was written by another ogygia version, or it is left over from an earlier build. Run the whole build again (server, then client) with one ogygia version.

shallow_routing_unsupported

warning

Kit's pushState / replaceState (shallow routing) have no equivalent in the ogygia router: the call does nothing. Navigate with goto(), or keep the state in the URL.

shared_state_not_plain

error

Shared state crosses between builds as data, so its values must serialize. Share plain facts; keep live objects (functions, class instances, DOM nodes) on one side.

slot_not_linked

error

An ogygia bug: please report it with the page that shows it.

snippet_captures_store

warning

A snippet passed into an island uses a store declared in the host as an object. The snippet's captures are serialized, and a store's functions cannot be. Read its value with $ inside the snippet, or share live state with a wired class.

snippet_freeze_not_installed

error

A bare snippet crosses an island boundary as the HTML it renders: on the server when the server renders it, in the browser when the browser creates it. That render lives in a module only code that already loads .svelte files reaches, so plain Node can import the codec. Encode such props where ogygia's hooks or its Region component are loaded, or pass the snippet through region.snippet().

snippet_reads_dollar_props

error

A snippet passed into an island is rendered from the values it captures. $$props and $$restProps belong to the host component and cannot be captured. Read what the snippet needs into a plain variable in the host, outside the snippet, and use that.

snippet_store_snapshot

warning

A snippet passed into an island reads a store with $. In plain Svelte that value is live. Across an island boundary the snippet is rendered once from the values it captured, so the island keeps the value the store had at render time.

snippet_store_unverified

warning

A snippet passed into an island reads $name, but name is not declared or imported in the host, so ogygia cannot tell it is a store. It captures the value at the host as if it were. If the build then fails in that file, this is the place to look.

store_factory_bad_rebuild

warning

A store factory returned something other than a store while the island rebuilt it. Return a store on every call, and put environment checks inside the factory's body.

store_factory_missing

warning

The island received a store whose factory module it never imports, so the store arrives as a plain writable. Import that module in the island.

store_factory_unbranded

warning

A store factory returned something other than a store, so it cannot be marked to cross into islands. That is fine for a store only the browser uses; to cross, the factory must return a store on the server too.

store_not_extensible

warning

A store crosses into an island with a mark naming the factory that rebuilds it. A frozen store cannot take the mark, so it crosses as a plain writable. Freeze it after it is branded, or leave it extensible.

testing_api_absent

error

The test waited for the page's testing API (window.__ogygia_testing) and it never appeared. The devtools plugin puts it there, on csr=false pages.

testing_engine_older

warning

The site under test was built with an older ogygia than this @ogygia/testing, so its testing engine answers less: no instance keys, no finding names, no counts.cls, no cause for each navigation. The test side fills in what it can. Said once per site.

transportable_class_missing

error

An island received an instance of a wired class, and the class's codec is not there to rebuild it. When the class's module did not load, the page tried again while the network could heal; once it gave up, its values in the page's seed or provided contexts read as missing (every region still wakes), and a region whose own props hold one does not wake. A reload loads the module again. Otherwise the island never imports the class's module: import the class as a value in the island.

transportable_unregistered

error

A class with a wire codec is registered by the ogygia Vite plugin while it compiles the class's module. This class was declared somewhere the plugin does not compile. Declare it as an export class in the app's source.

ts_strip_failed

warning

ogygia strips the types from a component's TypeScript script to compile its styles, and that failed (reason). The component's CSS may then ship unscoped. Fix the script.

virtual_duplicate

error

Two declarations claim the same virtual module. Each module is declared once, by the part of ogygia (or the plugin) that knows its value. An ogygia bug: please report it with the file that shows it.

virtual_names_stale

error

A value module's export names are read off its declaration when ogygia is built, so its realm module knows them without running it. This one now returns other names: the generated list is stale. Run node packages/core/scripts/virtual-types.ts. An ogygia bug: please report it with the file that shows it.

virtual_unknown

error

An import names a module in ogygia's namespace (ogygia:…) that no part of ogygia declares. Check the spelling against the modules the realm offers. If a plugin should serve it, check that the plugin is listed beside ogygia() in vite.config.

virtual_wrong_realm

error

Each of ogygia's modules runs in one realm: ogygia:server on the server, ogygia:boot in the browser's runtime, ogygia:region in both, ogygia:dev on the dev server only. A server module in the browser could carry a secret into the page. Read the value on the server and hand the browser what it needs through props or seeds.

wake_strategy_unknown

error

A wake mark says when an island's JavaScript runs. It takes 'load', 'idle', 'visible', 'interaction' or a media query such as '(min-width: 800px)'.

wire_class_anonymous

error

A class with a wire codec is registered while its module compiles: the build appends a call that hands the class to ogygia, tagged by its module and export name. An anonymous export default class { … } has no binding that call can name, so its instances could not cross into an island. Name the class; the export stays the default one.

wired_class_foreign

error

A stitched fragment's island received a wired object (a class registered with ogygia's wire) from another build. Two Svelte runtimes cannot share it. Pass plain data instead.