Skip to content

Warn when there's a typo in proprietary files #14315

Description

@theetrain

Describe the problem

This is a follow up to #10528

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

Common mistakes include:

  • hook.server.js, hook.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

No response

Importance

nice to have

Additional Information

Some users reported spending a day figuring out their files were misspelled. #10558 helped a lot with +-prefixed files, and I think adding typo detection for hooks.server.ts would be another big win.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions