Skip to content

fix: only suggest a + prefix for route filenames that are valid with the file's extension - #16837

Merged
Rich-Harris merged 1 commit into
version-3from
fix-route-filename-typo-warning
Aug 18, 2026
Merged

fix: only suggest a + prefix for route filenames that are valid with the file's extension#16837
Rich-Harris merged 1 commit into
version-3from
fix-route-filename-typo-warning

Conversation

@Nic-Polumeyv

Copy link
Copy Markdown
Contributor

create_manifest_data warns Did you mean +${file.name}? for any file whose name matches either the component or the module grammar, ignoring the extension. For routes/a/error.ts it suggests +error.ts, and renaming to that throws Files prefixed with + are reserved. The two grammars were also written out three times in the file; they're now two module-level patterns and the typo check picks the one matching the extension.

@pkg-svelte-dev

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from dd8e908:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/dd8e9083dde899e4c9d5e85ab2bc0b77dde7b3db

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16837

@changeset-bot

changeset-bot Bot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: dd8e908

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

@Rich-Harris Rich-Harris left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

@Rich-Harris
Rich-Harris merged commit 17123bf into version-3 Aug 18, 2026
27 checks passed
@Rich-Harris
Rich-Harris deleted the fix-route-filename-typo-warning branch August 18, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants