Skip to content

HAMUR_E1170: A server function file is not written as the build reads it

A server function file is not written as the build reads it. Error HAMUR_E1170 belongs to hamur, scan, build and dev (1001 – 1999).

Message

text
HAMUR_E1170 export "*" is not defined with defineHandler

Cause

A file in the server folder exports a handler or server function in a form the build cannot read. The message names what is wrong, for example an export *, or an export that is not const name = defineHandler({ … }).

Fix

Write each export as export const name = defineHandler({ … }) with the options as literals.