Skip to content

Warn when reserved filenames exist but have neglected the + prefix #10528

Closed
@theetrain

Description

Describe the problem

Sometimes, users will encounter unexplainable behaviours (or lack thereof) when seemingly adding the correct files, but those files were misspelled or neglected the + prefix.

Common mistakes include:

  • hook.server.js, hook.server.ts, +hooks.server.js, +hooks.server.ts
  • page.svelte
  • page.js, page.ts, page.server.js, page.server.ts
  • server.js, server.ts

Describe the proposed solution

During dev mode or project build, log a warning if any of the above misspellings are found in the codebase.

Alternatives considered

Inform users to read the docs more closely.

Importance

nice to have

Additional Information

No response

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions