Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECMAScript modules & TypeScript >=5.5 error #606

Open
Tonoir opened this issue Feb 24, 2025 · 1 comment
Open

ECMAScript modules & TypeScript >=5.5 error #606

Tonoir opened this issue Feb 24, 2025 · 1 comment

Comments

@Tonoir
Copy link

Tonoir commented Feb 24, 2025

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...

@cristianbote
Copy link
Owner

heya @Tonoir, thanks for opening this issue. Any chance you have a codesandbox or stackblitz with the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants