Skip to content

HAMUR_E1055: meta.redirect is not a literal

meta.redirect is not a literal. Error HAMUR_E1055 belongs to hamur, scan, build and dev (1001 – 1999).

Message

text
HAMUR_E1055 meta.redirect in <file> must be a string literal or { to: string, status?: number } as a literal

Cause

meta.redirect is neither a string literal nor { to, status? } as a literal.

Fix

Write meta.redirect as "/target" or { to: "/target", status: 301 }.