Skip to content

svelte-check --tsgo --incremental tsconfig.json "references" inconsistency #3027

@ageorgeh

Description

@ageorgeh

Describe the bug

There is an inconsistency in the error reporting of svelte-check with the --tsgo and --incremental flags in projects with "references" in tsconfig.json
In tsgo mode it shows extra errors for references:

Error: Output file '/.../svelte-check-refs/t/dist/src/index.d.ts' has not been built from source file '/.../svelte-check-refs/t/src/index.ts'. (ts)

Reproduction

Follow the README steps in this repo. The differences can be seen in the npm scripts

https://github.com/ageorgeh/svelte-check-repro

Expected behaviour

tsgo and incremental do not give these errors and svelte-check reports the same with or without these flags

System Info

  • OS: Linux
  • IDE: VSCode

Which package is the issue about?

svelte-check

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions