Skip to content

HAMUR_E1136: app/env.ts does not default-export defineEnv with an object literal

app/env.ts does not default-export defineEnv with an object literal. Error HAMUR_E1136 belongs to hamur, scan, build and dev (1001 – 1999).

Message

text
HAMUR_E1136 <shown> must default-export defineEnv({ ... }) with an object literal

Cause

The build reads the declared names of app/env.ts without running it, so the default export must be a defineEnv call with the object written in place.

Fix

Write export default defineEnv({ … }).