Skip to content

HAMUR_E1064: A server-only page's meta is not a literal

A server-only page's meta is not a literal. Error HAMUR_E1064 belongs to hamur, scan, build and dev (1001 – 1999).

Message

text
HAMUR_E1064 meta of the server-only page <file> must be a literal object; the client build holds it as written
text
HAMUR_E1064 meta.middleware of the server-only page <file> must be a literal; the client build holds its meta as written, so put the page's middleware in a _meta.ts of its folder

Cause

The meta of a server-only page is not a literal. The client build holds the meta as written.

Fix

Write meta as a literal object. Route middleware are imported functions, so a server-only page takes them from a _meta.ts in its folder.