Skip to content

HAMUR_E0030: Lazy route discovery is on with a single client bundle

Lazy route discovery is on with a single client bundle. Error HAMUR_E0030 belongs to hamur, config, environment and command line (0001 – 0999).

Message

text
HAMUR_E0030 build.clientBundle "<bundle>" needs app.routeDiscovery "initial": lazy discovery loads route chunks

Cause

A single client bundle (build.clientBundle other than the default) is set with lazy route discovery. Lazy discovery loads route chunks, which a single bundle does not have.

Fix

Set app.routeDiscovery to "initial", or use the default client bundle.

ts
import { defineConfig } from "hamur"

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