---
title: MARKLESS_ROUTER_DOCUMENT_STORAGE_UNSUPPORTED
description: "A Markless runtime error from @markless/router."
sidebar: { hidden: true }
search: { keywords: ["ROUTER_DOCUMENT_STORAGE_UNSUPPORTED","router document storage unsupported","markless error"] }
pagination: false
---

**Error** from the runtime, while a page renders or runs.

## What happened

The error message reads:

```text
MARKLESS_ROUTER_DOCUMENT_STORAGE_UNSUPPORTED: the document declares storage cells (<keys>), but the router serves only the document's HTML, so their state payload never reaches the browser and they can never resume. Declare storage() at module scope in a component the page renders instead.
```

Words in angle brackets change from case to case.

## How to fix it

If you see this error, open an issue on the [Markless repo](https://github.com/compiled-run/markless/issues) with the steps that cause it.

This page has no guide yet. [Help write it](/contributing/improve-these-docs).

## Where it comes from

`@markless/router` raises this code. Source:

- [packages/router/src/vite/runtime/create-server-entry.ts](https://github.com/compiled-run/markless/blob/main/packages/router/src/vite/runtime/create-server-entry.ts)

Read [how to read a Markless error](/tooling/diagnostics), or go back to [all error codes](/errors).
