Skip to content

Consider using 'export default' or another module format instead. [plugin angular-compiler] node_modules/@interactjs/types/typings.d.ts:4:0: 4 │ export = Interact ╵ ~~~~~~~~~~~~~~~~~ #1059

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

Open
athira-inapp opened this issue Feb 20, 2025 · 1 comment · May be fixed by #1061

Comments

@athira-inapp
Copy link

✘ [ERROR] TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. [plugin angular-compiler]
node_modules/@interactjs/types/typings.d.ts:4:0:
4 │ export = Interact
╵ ~~~~~~~~~~~~~~~~~

pjonsson added a commit to pjonsson/interact.js that referenced this issue Mar 19, 2025
Commit 99aa76a indicates that
ESM is used, so write typings.d.ts
in that format too.

Fixes taye#1059
@pjonsson pjonsson linked a pull request Mar 19, 2025 that will close this issue
@enne87
Copy link

enne87 commented Apr 14, 2025

In my "tsconfig.json" file I added

{ "skipLibCheck": true, "isolatedModules": true, }

which worked for me.

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

Successfully merging a pull request may close this issue.

2 participants