Skip to content

Extension-less imports don't work in TS Plugin Mode #806

Description

@machty

In classic/deprecated Language Server mode, we support using extension-less import module specifiers, e.g.

import Greeting from './Greeting';

In new TS Plugin mode, it fails to resolve the import until/unless you change to:

import Greeting from './Greeting.gts';

Example in our codebase:

https://github.com/typed-ember/glint/blob/main/packages/vscode/__fixtures__/template-imports-app-ts-plugin/src/index.gts#L7

Perhaps this isn't fixable

I'm waiting back to hear whether this can be fixed in Volar, but it's possible there is no solution to this, in which case apps that want to use new Glint in TS Plugin mode will have to codemod their imports to include extensions.

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