Skip to content

breaking: exclude directories without a +page or +server from RouteId - #16580

Merged
elliott-with-the-longest-name-on-github merged 7 commits into
sveltejs:version-3from
Nic-Polumeyv:fix-routeid-union
Jul 30, 2026
Merged

elliott-with-the-longest-name-on-github merged 7 commits into
sveltejs:version-3from
Nic-Polumeyv:fix-routeid-union

Conversation

@Nic-Polumeyv

@Nic-Polumeyv Nic-Polumeyv commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Closes #14847. #15027 fixed the Path half of that issue; the RouteId union still lists every directory, so resolve('/a') type-checks when /a only holds child routes.

LayoutParams now keys off the generated layout map instead of RouteId, and a layout sitting in a directory that isn't a route stops claiming its own id in LayoutRouteId.

resolve('/') stops type-checking in an app whose root page lives in a group, since /(app) is the route that serves /. Write resolve('') instead.

#16588 covers the $app/manifest side. Also points #16588's routes filter at is_app_route so the two stay in sync, and rewords its changeset to cover the #5793 fix.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

resolve allows non-existing routes ($app/paths)

4 participants