Skip to content

HAMUR_E0034: The mode is not a valid name

The mode is not a valid name. Error HAMUR_E0034 belongs to hamur, config, environment and command line (0001 – 0999).

Message

text
HAMUR_E0034 Invalid mode "<mode>"; use letters, digits, "-" and "_", not starting with "-"

Cause

The mode (--mode) has characters other than letters, digits, - and _, or starts with -. The mode is part of the .env.<mode> file name.

Fix

Use a mode such as staging.