Skip to content

Error: Unable to render, client only hint needed #11

@IgnaceMaes

Description

@IgnaceMaes

Recreating the example from the readme gives:

12:02:13 [ERROR] [NoClientOnlyHint] Unable to render `HelloWorld`. When using the `client:only` hydration strategy, Astro needs a hint to use the correct renderer.
  Hint:
    Did you mean to pass `client:only="react|preact|solid-js|vue|svelte"`? See https://docs.astro.build/en/reference/directives-reference/#clientonly for more information on client:only
  Error reference:
    https://docs.astro.build/en/reference/errors/no-client-only-hint/
  Stack trace:
    at /.../astro-app/node_modules/.pnpm/astro@5.16.6_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2_rollup@4.54.0_terser@5.44.1_typescript@5.9.3/node_modules/astro/dist/runtime/server/render/component.js:162:15
    [...] See full stack trace in the browser, or rerun with --verbose.

Via:

pnpm dlx create-astro@latest astro-app  --template with-tailwindcss --install --git
pnpm add ember-astro

I tried both client:only="ember" and client:only="ember-astro". (one is documented in the README, the other is used in examples in the repo)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions