Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route with "" path does not show up with Hilla @layout.tsx #20869

Open
Artur- opened this issue Jan 16, 2025 · 1 comment
Open

Route with "" path does not show up with Hilla @layout.tsx #20869

Artur- opened this issue Jan 16, 2025 · 1 comment

Comments

@Artur-
Copy link
Member

Artur- commented Jan 16, 2025

Description of the bug

If you have only @layout.tsx and one Flow view with @Route("") then the view is not shown.

Expected behavior

The view is shown

Minimal reproducible example

% npm init vaadin@latest                                                    

> npx
> create-vaadin

✔ Project name: … hilla-layout
✔ Example views: › Hilla (React + TypeScript)
✔ Features: › Use pre release

remove @index.tsx and any other client side view. Leave @layout.tsx.

Add a flow view with @Route("")

If you add one Hilla view, or leave the created about-hilla.tsx in the views folder, then the Flow view works

Versions

  • Vaadin / Flow version: 24.7-SNAPSHOT
@Jusius
Copy link

Jusius commented Jan 22, 2025

yup i found this issue when updating to vaadin 24.6.0
the work around is adding the @index.tsx in the frontend/views/ folder

place the route link on this index.tsx

@tepi tepi self-assigned this Jan 22, 2025
@tepi tepi moved this from 🪵Product backlog to ⚒️ In progress in Vaadin Flow ongoing work (Vaadin 10+) Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Normal Priority (P2)
Status: ⚒️ In progress
Development

No branches or pull requests

4 participants