Skip to content

Generated types are incompatible with ECMAScript modules #793

@benesjan

Description

@benesjan

Hello,
when having "module": "NodeNext" in tsconfig.json, I get the following error:
image

There doesn't seem to be an option to make typescript generate imports with file extensions. When I manually modify the typescript files and the extensions (.js or /index.js) to all the imports the issue disappears. Is there a way to enable this? If not would be great to have the support.

The repository I am working on is open-source so I can send a link if somebody would like to reproduce it.

Thank you

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