[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [local‑first/Db](https://evolu.dev/docs/api-reference/common/local-first/Db) › UnsupportedDbVersionError

Defined in: [packages/common/src/local-first/Db.ts:213](https://github.com/evoluhq/evolu/blob/f082fdd974e25fa0eb1134e4b34f15b740af8fe2/packages/common/src/local-first/Db.ts#L213)

The stored database version is newer than this code supports. Newer code
created or migrated the database, which is left unchanged. This happens when
older code opens a database a newer build migrated, for example an older
build loaded from a cache, or when the app was downgraded after a newer
version migrated the local data. On the web, a refused tab reloads once for
each stored version, so it loads the build the server now serves, and the
error is reported when that build refuses too. Then close all tabs of the
app, which lets a service worker replace a cached older build, or update the
app to a version that supports `storedVersion`.

## Extends

- [`Typed`](https://evolu.dev/docs/api-reference/common/Type/interfaces/Typed)\<`"UnsupportedDbVersionError"`\>

## Properties

<a id="storedversion"></a>

### storedVersion

```ts
readonly storedVersion: number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"NonNegative"> & Brand<"Positive">;
```

Defined in: [packages/common/src/local-first/Db.ts:214](https://github.com/evoluhq/evolu/blob/f082fdd974e25fa0eb1134e4b34f15b740af8fe2/packages/common/src/local-first/Db.ts#L214)

---

<a id="supportedversion"></a>

### supportedVersion

```ts
readonly supportedVersion: number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"NonNegative"> & Brand<"Positive">;
```

Defined in: [packages/common/src/local-first/Db.ts:215](https://github.com/evoluhq/evolu/blob/f082fdd974e25fa0eb1134e4b34f15b740af8fe2/packages/common/src/local-first/Db.ts#L215)

---

<a id="type"></a>

### type

```ts
readonly type: "UnsupportedDbVersionError";
```

Defined in: [packages/common/src/Type.ts:15402](https://github.com/evoluhq/evolu/blob/f082fdd974e25fa0eb1134e4b34f15b740af8fe2/packages/common/src/Type.ts#L15402)

#### Inherited from

[`Typed`](https://evolu.dev/docs/api-reference/common/Type/interfaces/Typed).[`type`](https://evolu.dev/docs/api-reference/common/Type/interfaces/Typed#type)