Skip to content

HAMUR_E1245: An app/app.config file is in the app

An app/app.config file is in the app. Error HAMUR_E1245 belongs to hamur, scan, build and dev (1001 – 1999).

Message

text
HAMUR_E1245 <file>: the app config was removed; move its keys under runtimeConfig.public in hamur.config.ts

Cause

The app or a layer has app/app.config.ts, .js or .mjs. The app config is runtimeConfig.public now, read with useRuntimeConfig().public.

Fix

Move the file's keys under runtimeConfig.public in hamur.config.ts, read them with useRuntimeConfig().public, and delete the file.