ECMAScript modules & TypeScript >=5.5 error

#606 · open · 1 comments

View on GitHub ↗

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

Comments

cristianbote

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