Skip to content

VSCode shows errors when importing a .svelte file from a .ts file #2874

@kswope

Description

@kswope

Describe the bug

Image

Reproduction

Just create the default sveltekit minimal app

npx sv create app

Open in VSCode

Witness the error in any .ts file that imports a .svelte file (which happens with vitest component tests, including the example test)

Expected behaviour

No red squiggly lines

System Info

  • OS: OSX
  • IDE: VSCode

Which package is the issue about?

Svelte for VS Code extension

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions