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

Cannot use in ESM due to export = wtf #581

Open
rezonant opened this issue Nov 29, 2024 · 1 comment
Open

Cannot use in ESM due to export = wtf #581

rezonant opened this issue Nov 29, 2024 · 1 comment

Comments

@rezonant
Copy link
Contributor

rezonant commented Nov 29, 2024

Related: #441

The included types use export = wtf which is not supported when targeting ESM.

TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.

    node_modules/wtf_wikipedia/types/index.d.ts:191:0:
      191 │ export = wtf
          ╵ ~~~~~~~~~~~~

Can be worked around if you don't need newer features/fixes with version 9.0.1

@spencermountain
Copy link
Owner

hey thanks William - I've never seen that error, and wtf is used in a lot of typescript projects.
I'm happy to merge a PR, or make a change if you have a suggestion.
To be honest, I really know nothing about typescript, and how the config seems to change all the time.
please let me know if I can help, or how to reproduce this error.
cheers

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