Skip to content

ECMAScript modules & TypeScript >=5.5 error #606

Description

@Tonoir

In a Vite project with type="module", tsc fails when using TypeScript >= v5.5. The issue is:

node_modules/goober/goober.d.ts:3:1 - error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.

3 export = goober;

Package versions:

  • vite 6.1.1
  • typescript 5.5.0
  • goober 2.1.16

Not completely sure if this may be caused by another issue specific to my project though, as this has not been reported yet and TS 5.5 has been out for a while...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions