API reference › @evolu/common › local‑first/Db › UnsupportedDbVersionError

Defined in: packages/common/src/local-first/Db.ts:460

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<"UnsupportedDbVersionError">

Properties

storedVersion

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

Defined in: packages/common/src/local-first/Db.ts:461


supportedVersion

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

Defined in: packages/common/src/local-first/Db.ts:462


type

readonly type: "UnsupportedDbVersionError";

Defined in: packages/common/src/Type.ts:19326

Inherited from

Typed.type