Skip to content

(Svelte 5) svelte-check fails when project contains only *.svelte.ts files #2504

@peterreeves

Description

@peterreeves

Describe the bug

I'm working in a mono-repo using Svelte 5 that has a utils package with only *.svelte.ts files. Running svelte-check --tsconfig ./tsconfig.json fails with the error No svelte input files were found in config file. However adding an empty Thing.svelte file to the package will fix the problem.

Reproduction

https://stackblitz.com/edit/vitejs-vite-gocm7l?file=package.json

Run npm run check and observe the No svelte input files... error.
Create an empty Thing.svelte file in the "src" folder and rerun npm run check.
Observe that svelte-check now runs, and correctly reports the problem in src/my_file.svelte.ts.

Expected behaviour

svelte-check should run even though the package contains no .svelte files.

System Info

  • OS: Windows
  • IDE: VsCode, StackBlitz

Which package is the issue about?

No response

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions