Skip to content

HAMUR_E0029: An inline client bundle needs hash history

An inline client bundle needs hash history. Error HAMUR_E0029 belongs to hamur, config, environment and command line (0001 – 0999).

Message

text
HAMUR_E0029 build.clientBundle "inline" needs app.history "hash"

Cause

build.clientBundle: "inline" is set and app.history is not "hash". A single file has no other URLs to load.

Fix

Set app.history to "hash".

ts
import { defineConfig } from "hamur"

export default defineConfig({
  framework: "react",
  ssr: false,
  preset: "static",
  app: { history: "hash", routeDiscovery: "initial" },
  build: { clientBundle: "inline" },
})